diff options
-rw-r--r-- | Swift/QtUI/QtSwift.h | 4 | ||||
-rw-r--r-- | Swiften/EventLoop/Qt/QtEventLoop.h (renamed from Swift/QtUI/QtMainEventLoop.h) | 10 |
2 files changed, 5 insertions, 9 deletions
diff --git a/Swift/QtUI/QtSwift.h b/Swift/QtUI/QtSwift.h index 223316e..263dc05 100644 --- a/Swift/QtUI/QtSwift.h +++ b/Swift/QtUI/QtSwift.h @@ -2,7 +2,7 @@ #define SWIFT_QtSwift_H #include "Swiften/Base/String.h" -#include "QtMainEventLoop.h" +#include "Swiften/EventLoop/Qt/QtEventLoop.h" #include "QtLoginWindowFactory.h" #include "QtMainWindowFactory.h" #include "QtChatWindowFactory.h" @@ -31,7 +31,7 @@ namespace Swift { QtChatWindowFactory *chatWindowFactory_; QtMainWindowFactory *rosterWindowFactory_; QtLoginWindowFactory *loginWindowFactory_; - QtMainEventLoop clientMainThreadCaller_; + QtEventLoop clientMainThreadCaller_; QtSettingsProvider *settings_; QtSystemTray* systemTray_; QSplitter* splitter_; diff --git a/Swift/QtUI/QtMainEventLoop.h b/Swiften/EventLoop/Qt/QtEventLoop.h index 2df3ad0..9c7d2f1 100644 --- a/Swift/QtUI/QtMainEventLoop.h +++ b/Swiften/EventLoop/Qt/QtEventLoop.h @@ -1,5 +1,4 @@ -#ifndef SWIFT_QtMainEventLoop_H -#define SWIFT_QtMainEventLoop_H +#pragma once #include <QObject> #include <QEvent> @@ -7,10 +6,9 @@ #include "Swiften/EventLoop/EventLoop.h" -class QtMainEventLoop : public QObject, public Swift::EventLoop -{ +class QtEventLoop : public QObject, public Swift::EventLoop { public: - QtMainEventLoop() {} + QtEventLoop() {} virtual void post(const Swift::Event& event) { QCoreApplication::postEvent(this, new Event(event)); @@ -36,5 +34,3 @@ class QtMainEventLoop : public QObject, public Swift::EventLoop Swift::Event event_; }; }; - -#endif |