vnote/src/vapplication.h
2019-12-17 07:43:49 +08:00

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