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.
34 lines
669 B
34 lines
669 B
#ifndef SAMPLECOREAPP_H
|
|
#define SAMPLECOREAPP_H
|
|
|
|
#include <QtMvvmCore/CoreApp>
|
|
|
|
class SampleCoreApp : public QtMvvm::CoreApp
|
|
{
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(bool showDrawer READ showDrawer WRITE setShowDrawer NOTIFY showDrawerChanged)
|
|
|
|
public:
|
|
SampleCoreApp(QObject *parent = nullptr);
|
|
|
|
bool showDrawer() const;
|
|
|
|
public Q_SLOTS:
|
|
void setShowDrawer(bool showDrawer);
|
|
|
|
Q_SIGNALS:
|
|
void showDrawerChanged(bool showDrawer);
|
|
|
|
protected:
|
|
void performRegistrations() override;
|
|
int startApp(const QStringList &arguments) override;
|
|
|
|
private:
|
|
bool _showDrawer;
|
|
};
|
|
|
|
#undef coreApp
|
|
#define coreApp static_cast<SampleCoreApp*>(QtMvvm::CoreApp::instance())
|
|
|
|
#endif // SAMPLECOREAPP_H
|
|
|