mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
28 lines
469 B
C++
28 lines
469 B
C++
#ifndef VAPPLICATION_H
|
|
#define VAPPLICATION_H
|
|
|
|
#include <QApplication>
|
|
#include <QDebug>
|
|
#include "vmainwindow.h"
|
|
|
|
class VApplication : public QApplication
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit VApplication(int &argc, char **argv);
|
|
|
|
void setWindow(VMainWindow * window)
|
|
{
|
|
this->window = window;
|
|
}
|
|
|
|
|
|
public slots:
|
|
void onApplicationStateChanged(Qt::ApplicationState state);
|
|
|
|
private:
|
|
VMainWindow *window = nullptr;
|
|
};
|
|
|
|
#endif // VAPPLICATION_H
|