21 lines
329 B
C++
21 lines
329 B
C++
#ifndef QT_APPLICATION_H
|
|
#define QT_APPLICATION_H
|
|
|
|
#include <QApplication>
|
|
|
|
class QtApplication
|
|
: public QApplication
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QtApplication(int& argc, char** argv);
|
|
|
|
bool event(QEvent *event);
|
|
int exec();
|
|
|
|
private slots:
|
|
void onApplicationStateChanged(Qt::ApplicationState state);
|
|
};
|
|
|
|
#endif // QT_APPLICATION_H
|