diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-03-22 17:40:13 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-03-22 17:40:13 (GMT) |
commit | 1ebd045cadb3585c846ea38c63d508e5aa6ec1e7 (patch) | |
tree | 304f2b9e8b92e7ff44aa790a298b1d2592d3f083 /Swift/QtUI/EventViewer | |
parent | 6581ec0c0881263bea671c6122b546483ad6f2e8 (diff) | |
download | swift-contrib-1ebd045cadb3585c846ea38c63d508e5aa6ec1e7.zip swift-contrib-1ebd045cadb3585c846ea38c63d508e5aa6ec1e7.tar.bz2 |
Sucky UI for subscription requests
Diffstat (limited to 'Swift/QtUI/EventViewer')
-rw-r--r-- | Swift/QtUI/EventViewer/QtEventWindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Swift/QtUI/EventViewer/QtEventWindow.cpp b/Swift/QtUI/EventViewer/QtEventWindow.cpp index 91eb2c1..def124a 100644 --- a/Swift/QtUI/EventViewer/QtEventWindow.cpp +++ b/Swift/QtUI/EventViewer/QtEventWindow.cpp @@ -1,11 +1,14 @@ + #include "Swift/QtUI/EventViewer/QtEventWindow.h" #include <qdebug> #include "Swiften/Events/MessageEvent.h" +#include "Swift/QtUI/QtSubscriptionRequestWindow.h" #include "Swiften/Events/SubscriptionRequestEvent.h" #include "Swift/Controllers/UIEvents/RequestChatUIEvent.h" + #include "Swiften/Base/Platform.h" namespace Swift { @@ -39,8 +42,8 @@ void QtEventWindow::handleItemActivated(const QModelIndex& item) { if (messageEvent) { eventStream_->send(boost::shared_ptr<UIEvent>(new RequestChatUIEvent(messageEvent->getStanza()->getFrom()))); } else if (subscriptionEvent) { - printf("Subscription activated\n"); - //FIXME: do something + QtSubscriptionRequestWindow* window = QtSubscriptionRequestWindow::getWindow(subscriptionEvent, this); + window->show(); } else { qWarning() << "Trying to activate an unexpected event"; } |