1 #ifndef H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_CUTEAPPLICATION_HPP
2 #define H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_CUTEAPPLICATION_HPP
4 #include "internal/common.hpp"
6 #include <QApplication>
7 #include <QElapsedTimer>
31 static constexpr
int IDLE_MEASURE_INTERVAL = 1000;
35 Q_PROPERTY(
double idle READ idle NOTIFY idleChanged)
37 Q_PROPERTY(
bool idleMeasureEnabled READ idleMeasureEnabled WRITE setIdleMeasureEnabled NOTIFY idleMeasureEnabledChanged)
45 bool idleMeasureEnabled() const;
47 void setIdleMeasureEnabled(
bool idleMeasureEnabled);
56 void idleMeasureEnabledChanged();
61 void updateIdleTime();
66 void setIdle(
double idle);
75 bool idleMeasureEnabled;
83 idleMeasureEnabled(
false)