Some work about adaptive color scheme for Web UI (PR #19901)
http://[316:c51a:62a3:8b9::4]/d4708/qBittorrent/src/branch/adaptive-webui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
677 B
40 lines
677 B
14 years ago
|
#ifndef SESSIONAPPLICATION_H
|
||
|
#define SESSIONAPPLICATION_H
|
||
|
|
||
|
#ifdef Q_WS_MAC
|
||
|
#include "qmacapplication.h"
|
||
|
#else
|
||
|
#include "qtsingleapplication.h"
|
||
|
#endif
|
||
|
|
||
|
#include <QSessionManager>
|
||
|
|
||
|
class SessionApplication :
|
||
|
#ifdef Q_WS_MAC
|
||
|
public QMacApplication
|
||
|
#else
|
||
|
public QtSingleApplication
|
||
|
#endif
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
SessionApplication(const QString &id, int &argc, char **argv) :
|
||
|
#ifdef Q_WS_MAC
|
||
|
QMacApplication(id, argc, argv)
|
||
|
#else
|
||
|
QtSingleApplication(id, argc, argv)
|
||
|
#endif
|
||
|
{}
|
||
|
|
||
|
void commitData(QSessionManager & manager) {
|
||
|
Q_UNUSED(manager);
|
||
|
emit sessionIsShuttingDown();
|
||
|
}
|
||
|
|
||
|
signals:
|
||
|
void sessionIsShuttingDown();
|
||
|
};
|
||
|
|
||
|
#endif // SESSIONAPPLICATION_H
|