-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
zapplication.cpp
25 lines (22 loc) · 1.03 KB
/
zapplication.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "zapplication.h"
#include "settings.h"
zApplication::zApplication(int& argc, char** argv, bool GUIenabled)
: QtSingleApplication(argc, argv, GUIenabled) {}
zApplication::zApplication(const QString& id, int& argc, char** argv)
: QtSingleApplication(id, argc, argv) {}
#if QT_VERSION < 0x050000
zApplication::zApplication(int& argc, char** argv, Type type)
: QtSingleApplication(argc, argv, type) {}
#endif
#if defined(Q_WS_X11)
zApplication::zApplication(Display* dpy, Qt::HANDLE visual, Qt::HANDLE colormap)
: QtSingleApplication(dpy, visual, colormap) {}
zApplication::zApplication(Display* dpy, int& argc, char** argv, Qt::HANDLE visual, Qt::HANDLE cmap)
: QtSingleApplication(dpy, argc, argv, visual, cmap) {}
zApplication::zApplication(Display* dpy, const QString& appId, int argc, char** argv, Qt::HANDLE visual, Qt::HANDLE colormap)
: QtSingleApplication(dpy, appId, argc, argv, visual, colormap) {}
#endif
void zApplication::commitData(QSessionManager &) //fixing "KDE logout was cancelled by zNotes" bug
{
settings.save();
}