You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
534 B
29 lines
534 B
#ifndef %{AppGuard}
|
|
#define %{AppGuard}
|
|
|
|
#include <coreapp.h>
|
|
|
|
#include "%{ControlHdrName}"
|
|
|
|
class %{AppCn} : public CoreApp
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit %{AppCn}(QObject *parent = nullptr);
|
|
|
|
protected:
|
|
void setupParser(QCommandLineParser &parser, bool &allowInvalid) const override;
|
|
bool startApp(const QCommandLineParser &parser) override;
|
|
|
|
protected slots:
|
|
void aboutToQuit() override;
|
|
|
|
private:
|
|
%{ControlCn} *mainControl;
|
|
};
|
|
|
|
#undef coreApp
|
|
#define coreApp static_cast<%{AppCn}*>(CoreApp::instance())
|
|
|
|
#endif // %{AppGuard}
|
|
|