1 #ifndef H_EXTENSIONS_CUTEHMI_GUI_0_INCLUDE_CUTEHMI_GUI_CUTEAPPLICATION_HPP
2 #define H_EXTENSIONS_CUTEHMI_GUI_0_INCLUDE_CUTEHMI_GUI_CUTEAPPLICATION_HPP
4 #include "internal/common.hpp"
7 #include <QApplication>
8 #include <QElapsedTimer>
32 static constexpr
int IDLE_MEASURE_INTERVAL = 1000;
36 Q_PROPERTY(
double idle READ idle NOTIFY idleChanged)
38 Q_PROPERTY(
bool idleMeasureEnabled READ idleMeasureEnabled WRITE setIdleMeasureEnabled NOTIFY idleMeasureEnabledChanged)
44 Q_PROPERTY(
Theme * defaultTheme READ defaultTheme CONSTANT)
49 Q_PROPERTY(
Theme * theme READ theme WRITE setTheme NOTIFY themeChanged)
56 bool idleMeasureEnabled() const;
58 void setIdleMeasureEnabled(
bool idleMeasureEnabled);
60 Theme * defaultTheme() const;
62 Theme * theme() const;
64 void setTheme(
Theme * theme);
73 void idleMeasureEnabledChanged();
80 void updateIdleTime();
85 void setIdle(
double idle);
94 bool idleMeasureEnabled;
104 idleMeasureEnabled(
false),
105 defaultTheme(
new Theme(parent)),