diff options
Diffstat (limited to 'tests/plugins/pack/qtapp/src')
| -rw-r--r-- | tests/plugins/pack/qtapp/src/assets/xmake.ico | bin | 0 -> 119943 bytes | |||
| -rw-r--r-- | tests/plugins/pack/qtapp/src/assets/xmake.png | bin | 0 -> 24378 bytes | |||
| -rw-r--r-- | tests/plugins/pack/qtapp/src/main.cpp | 11 | ||||
| -rw-r--r-- | tests/plugins/pack/qtapp/src/mainwindow.cpp | 16 | ||||
| -rw-r--r-- | tests/plugins/pack/qtapp/src/mainwindow.h | 23 | ||||
| -rw-r--r-- | tests/plugins/pack/qtapp/src/mainwindow.ui | 46 |
6 files changed, 96 insertions, 0 deletions
diff --git a/tests/plugins/pack/qtapp/src/assets/xmake.ico b/tests/plugins/pack/qtapp/src/assets/xmake.ico Binary files differnew file mode 100644 index 000000000..52c8ef389 --- /dev/null +++ b/tests/plugins/pack/qtapp/src/assets/xmake.ico diff --git a/tests/plugins/pack/qtapp/src/assets/xmake.png b/tests/plugins/pack/qtapp/src/assets/xmake.png Binary files differnew file mode 100644 index 000000000..be7f6c4f2 --- /dev/null +++ b/tests/plugins/pack/qtapp/src/assets/xmake.png diff --git a/tests/plugins/pack/qtapp/src/main.cpp b/tests/plugins/pack/qtapp/src/main.cpp new file mode 100644 index 000000000..aee3b0862 --- /dev/null +++ b/tests/plugins/pack/qtapp/src/main.cpp @@ -0,0 +1,11 @@ +#include "mainwindow.h" +#include <QApplication> + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + return a.exec(); +} + diff --git a/tests/plugins/pack/qtapp/src/mainwindow.cpp b/tests/plugins/pack/qtapp/src/mainwindow.cpp new file mode 100644 index 000000000..7002a54ea --- /dev/null +++ b/tests/plugins/pack/qtapp/src/mainwindow.cpp @@ -0,0 +1,16 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) + : QMainWindow(parent) + , ui(new Ui::MainWindow) +{ + ui->setupUi(this); + setWindowTitle("Qt Widget App"); +} + +MainWindow::~MainWindow() +{ + delete ui; +} + diff --git a/tests/plugins/pack/qtapp/src/mainwindow.h b/tests/plugins/pack/qtapp/src/mainwindow.h new file mode 100644 index 000000000..1f2d99bae --- /dev/null +++ b/tests/plugins/pack/qtapp/src/mainwindow.h @@ -0,0 +1,23 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <QMainWindow> + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = nullptr); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H + diff --git a/tests/plugins/pack/qtapp/src/mainwindow.ui b/tests/plugins/pack/qtapp/src/mainwindow.ui new file mode 100644 index 000000000..6772bd4b0 --- /dev/null +++ b/tests/plugins/pack/qtapp/src/mainwindow.ui @@ -0,0 +1,46 @@ +<?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>640</width> + <height>480</height> + </rect> + </property> + <property name="windowTitle"> + <string>Qt Widget App</string> + </property> + <widget class="QWidget" name="centralWidget"> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Welcome to Qt Widget App!</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QMenuBar" name="menuBar"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>640</width> + <height>22</height> + </rect> + </property> + </widget> + <widget class="QStatusBar" name="statusBar"/> + </widget> + <layoutdefault spacing="6" margin="11"/> + <resources/> + <connections/> +</ui> + |
