diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-09-13 17:43:00 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-09-21 00:06:13 (GMT) |
commit | dbe8eef5f5c500758dd3ddafe9e6f94771d7fd97 (patch) | |
tree | e4978a1e63ee12a728c82ef446a51099fcacb3d4 /src/qt-test.hpp | |
parent | 6004e1e00affe07ea29e4e073d006ac686a00937 (diff) | |
download | mxe-dbe8eef5f5c500758dd3ddafe9e6f94771d7fd97.zip mxe-dbe8eef5f5c500758dd3ddafe9e6f94771d7fd97.tar.gz mxe-dbe8eef5f5c500758dd3ddafe9e6f94771d7fd97.tar.bz2 |
qt-test: add a header
Test moc tool
Diffstat (limited to 'src/qt-test.hpp')
-rw-r--r-- | src/qt-test.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/qt-test.hpp b/src/qt-test.hpp new file mode 100644 index 0000000..213f59b --- /dev/null +++ b/src/qt-test.hpp @@ -0,0 +1,30 @@ +#pragma once + +#include <QtGui> + +#include "ui_qt-test.h" + +class MainWindow : public QMainWindow { + Q_OBJECT +public: + MainWindow(QWidget* parent = 0): + QMainWindow(parent), + ui(new Ui::MainWindow) + { + ui->setupUi(this); + } + + ~MainWindow() { + delete ui; + } + +signals: + void testSignal(); + +public slots: + void testSlot() { + } + +private: + Ui::MainWindow* ui; +}; |