From b5bdebeeba862e6d0f541d203fed3bd0bc5cef5d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Tue, 15 Feb 2011 22:58:18 +0100
Subject: Moved QtEventLoop to the Swift namespace.


diff --git a/Swiften/EventLoop/Qt/QtEventLoop.h b/Swiften/EventLoop/Qt/QtEventLoop.h
index b42b916..8f6c709 100644
--- a/Swiften/EventLoop/Qt/QtEventLoop.h
+++ b/Swiften/EventLoop/Qt/QtEventLoop.h
@@ -12,34 +12,36 @@
 
 #include "Swiften/EventLoop/EventLoop.h"
 
-class QtEventLoop : public QObject, public Swift::EventLoop {
-	public:
-		QtEventLoop() {}
-		~QtEventLoop() {
-			QCoreApplication::removePostedEvents(this);
-		}
-
-		virtual void post(const Swift::Event& event) {
-			QCoreApplication::postEvent(this, new Event(event));
-		}
-
-		virtual bool event(QEvent* qevent) {
-			Event* event = dynamic_cast<Event*>(qevent);
-			if (event) {
-				handleEvent(event->event_);
-				//event->deleteLater(); FIXME: Leak?
-				return true;
+namespace Swift {
+	class QtEventLoop : public QObject, public EventLoop {
+		public:
+			QtEventLoop() {}
+			~QtEventLoop() {
+				QCoreApplication::removePostedEvents(this);
 			}
 
-			return false;
-		}
-	
-	private:
-		struct Event : public QEvent {
-				Event(const Swift::Event& event) :
-						QEvent(QEvent::User), event_(event) {
+			virtual void post(const Swift::Event& event) {
+				QCoreApplication::postEvent(this, new Event(event));
+			}
+
+			virtual bool event(QEvent* qevent) {
+				Event* event = dynamic_cast<Event*>(qevent);
+				if (event) {
+					handleEvent(event->event_);
+					//event->deleteLater(); FIXME: Leak?
+					return true;
 				}
 
-				Swift::Event event_;
-		};
-};
+				return false;
+			}
+		
+		private:
+			struct Event : public QEvent {
+					Event(const Swift::Event& event) :
+							QEvent(QEvent::User), event_(event) {
+					}
+
+					Swift::Event event_;
+			};
+	};
+}
-- 
cgit v0.10.2-6-g49f6