Changeset View
Changeset View
Standalone View
Standalone View
app_templates/cpp/CMake/cmake_qt5guiapp/src/%{APPNAMELC}.h
1 | #ifndef %{APPNAMEUC}_H | 1 | #ifndef %{APPNAMEUC}_H | ||
---|---|---|---|---|---|
2 | #define %{APPNAMEUC}_H | 2 | #define %{APPNAMEUC}_H | ||
3 | 3 | | |||
4 | #include <QMainWindow> | 4 | #include <QMainWindow> | ||
5 | #include <QScopedPointer> | ||||
5 | 6 | | |||
6 | namespace Ui { | 7 | namespace Ui { | ||
7 | class %{APPNAME}; | 8 | class %{APPNAME}; | ||
8 | } | 9 | } | ||
9 | 10 | | |||
10 | class %{APPNAME} : public QMainWindow | 11 | class %{APPNAME} : public QMainWindow | ||
11 | { | 12 | { | ||
12 | Q_OBJECT | 13 | Q_OBJECT | ||
13 | 14 | | |||
14 | public: | 15 | public: | ||
15 | explicit %{APPNAME}(QWidget *parent = 0); | 16 | explicit %{APPNAME}(QWidget *parent = nullptr); | ||
16 | ~%{APPNAME}(); | 17 | ~%{APPNAME}() override; | ||
17 | 18 | | |||
18 | private: | 19 | private: | ||
19 | Ui::%{APPNAME} *ui; | 20 | QScopedPointer<Ui::%{APPNAME}> m_ui; | ||
20 | }; | 21 | }; | ||
21 | 22 | | |||
22 | #endif // %{APPNAMEUC}_H | 23 | #endif // %{APPNAMEUC}_H |