Browse Source
+ Fix keyboard input focus to bind on mouse click + Fix missing call to `setFormat` in `MainWidget` ctor + Add placeholder toolbar optionsmaster
9 changed files with 204 additions and 89 deletions
After Width: | Height: | Size: 79 KiB |
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
#include "mainwindow.h" |
||||
#include "ui_mainwindow.h" |
||||
|
||||
MainWindow::MainWindow(QWidget *parent) : |
||||
QMainWindow(parent), |
||||
ui(new Ui::MainWindow) |
||||
{ |
||||
ui->setupUi(this); |
||||
setWindowIcon(QIcon("../resources/icon.png")); |
||||
} |
||||
|
||||
MainWindow::~MainWindow() |
||||
{ |
||||
delete ui; |
||||
} |
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
#ifndef MAINWINDOW_H |
||||
#define MAINWINDOW_H |
||||
|
||||
#include <QMainWindow> |
||||
|
||||
#include "main-widget_export.h" |
||||
|
||||
namespace Ui { |
||||
class MainWindow; |
||||
} |
||||
|
||||
class MAIN_WIDGET_EXPORT MainWindow : public QMainWindow |
||||
{ |
||||
Q_OBJECT |
||||
|
||||
public: |
||||
explicit MainWindow(QWidget *parent = nullptr); |
||||
~MainWindow(); |
||||
|
||||
private: |
||||
Ui::MainWindow *ui; |
||||
}; |
||||
|
||||
#endif // MAINWINDOW_H
|
@ -0,0 +1,104 @@
@@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<ui version="4.0"> |
||||
<class>MainWindow</class> |
||||
<widget class="QMainWindow" name="MainWindow"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>0</x> |
||||
<y>0</y> |
||||
<width>800</width> |
||||
<height>600</height> |
||||
</rect> |
||||
</property> |
||||
<property name="windowTitle"> |
||||
<string>Qtk - MainWindow</string> |
||||
</property> |
||||
<widget class="QWidget" name="centralwidget"> |
||||
<widget class="MainWidget" name="openGLWidget"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>10</x> |
||||
<y>10</y> |
||||
<width>775</width> |
||||
<height>550</height> |
||||
</rect> |
||||
</property> |
||||
</widget> |
||||
</widget> |
||||
<widget class="QMenuBar" name="menubar"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>0</x> |
||||
<y>0</y> |
||||
<width>800</width> |
||||
<height>22</height> |
||||
</rect> |
||||
</property> |
||||
<widget class="QMenu" name="menuTest"> |
||||
<property name="title"> |
||||
<string>File</string> |
||||
</property> |
||||
<addaction name="actionOpen"/> |
||||
<addaction name="actionSave_2"/> |
||||
<addaction name="actionSave_as"/> |
||||
<addaction name="actionExit"/> |
||||
</widget> |
||||
<widget class="QMenu" name="menuView"> |
||||
<property name="title"> |
||||
<string>View</string> |
||||
</property> |
||||
<addaction name="actionShow_Console"/> |
||||
</widget> |
||||
<addaction name="menuTest"/> |
||||
<addaction name="menuView"/> |
||||
</widget> |
||||
<widget class="QStatusBar" name="statusbar"/> |
||||
<action name="actionOtherTest"> |
||||
<property name="text"> |
||||
<string>Save</string> |
||||
</property> |
||||
</action> |
||||
<action name="actionSave"> |
||||
<property name="text"> |
||||
<string>Save</string> |
||||
</property> |
||||
</action> |
||||
<action name="actionOpen"> |
||||
<property name="text"> |
||||
<string>Open...</string> |
||||
</property> |
||||
</action> |
||||
<action name="actionSave_2"> |
||||
<property name="text"> |
||||
<string>Save</string> |
||||
</property> |
||||
</action> |
||||
<action name="actionSave_as"> |
||||
<property name="text"> |
||||
<string>Save as...</string> |
||||
</property> |
||||
</action> |
||||
<action name="actionExit"> |
||||
<property name="text"> |
||||
<string>Exit</string> |
||||
</property> |
||||
</action> |
||||
<action name="actionShow_Console"> |
||||
<property name="checkable"> |
||||
<bool>true</bool> |
||||
</property> |
||||
<property name="text"> |
||||
<string>Show Console</string> |
||||
</property> |
||||
</action> |
||||
</widget> |
||||
<customwidgets> |
||||
<customwidget> |
||||
<class>MainWidget</class> |
||||
<extends>QOpenGLWidget</extends> |
||||
<header>mainwidget.h</header> |
||||
</customwidget> |
||||
</customwidgets> |
||||
<resources/> |
||||
<connections/> |
||||
</ui> |
Loading…
Reference in new issue