forked from proton/zNotes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzapplication.h
More file actions
24 lines (21 loc) · 827 Bytes
/
Copy pathzapplication.h
File metadata and controls
24 lines (21 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef ZAPPLICATION_H
#define ZAPPLICATION_H
#include "single_inst/qtsingleapplication.h"
class zApplication: public QtSingleApplication
{
Q_OBJECT
public:
zApplication(int &argc, char **argv, bool GUIenabled = true);
zApplication(const QString &id, int &argc, char **argv);
#if QT_VERSION < 0x050000
zApplication(int &argc, char **argv, Type type);
#endif
#if defined(Q_WS_X11)
zApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0);
zApplication(Display* dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0);
zApplication(Display* dpy, const QString &appId, int argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0);
#endif
~zApplication() {}
void commitData(QSessionManager &); //fixing "KDE logout was cancelled by zNotes" bug
};
#endif // ZAPPLICATION_H