1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

- Added exit() function to headless loader class so that we have a way to return to prompt

This commit is contained in:
Christophe Dumez 2009-12-15 11:14:03 +00:00
parent c7ccf39abf
commit dd22e9009c

View File

@ -32,12 +32,22 @@
#define HEADLESSLOADER_H #define HEADLESSLOADER_H
#include <QObject> #include <QObject>
#include <QCoreApplication>
class HeadlessLoader: QObject { class HeadlessLoader: QObject {
Q_OBJECT
public: public:
HeadlessLoader() { HeadlessLoader() {
} }
public slots:
// Call this function to exit qBittorrent headless loader
// and return to prompt (object will be deleted by main)
void exit() {
qApp->quit();
}
}; };
#endif #endif