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
556 B
29 lines
556 B
#ifndef TESTAPP_H
|
|
#define TESTAPP_H
|
|
|
|
#include <QtMvvmCore/CoreApp>
|
|
#include "testpresenter.h"
|
|
|
|
class TestApp : public QtMvvm::CoreApp
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TestApp(QObject *parent = nullptr);
|
|
|
|
bool wasRegistered = false;
|
|
QStringList startArgs;
|
|
bool wasClosed = false;
|
|
|
|
static TestPresenter *presenter();
|
|
|
|
protected:
|
|
void performRegistrations() override;
|
|
int startApp(const QStringList &arguments) override;
|
|
void closeApp() override;
|
|
};
|
|
|
|
#undef coreApp
|
|
#define coreApp static_cast<TestApp*>(QtMvvm::CoreApp::instance())
|
|
|
|
#endif // TESTAPP_H
|
|
|