diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-05-31 17:27:48 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-05-31 17:30:34 (GMT) |
commit | 6aeb44a905b0c1955ea3afe4ea2025370544e699 (patch) | |
tree | f5d99af0cd87d628263643dc2aa98353d3d3b78d /Swift/QtUI/QtChatWindow.cpp | |
parent | 59f1bfcf315a77834ddbce20cc05892d211ab55c (diff) | |
download | swift-contrib-6aeb44a905b0c1955ea3afe4ea2025370544e699.zip swift-contrib-6aeb44a905b0c1955ea3afe4ea2025370544e699.tar.bz2 |
Very poor prototype of a MUC invite dialog
Diffstat (limited to 'Swift/QtUI/QtChatWindow.cpp')
-rw-r--r-- | Swift/QtUI/QtChatWindow.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp index 52ce701..137c044 100644 --- a/Swift/QtUI/QtChatWindow.cpp +++ b/Swift/QtUI/QtChatWindow.cpp @@ -17,6 +17,7 @@ #include "QtTextEdit.h" #include "QtSettingsProvider.h" #include "QtScaledAvatarCache.h" +#include "QtInviteToChatWindow.h" #include <Swiften/StringCodecs/Base64.h> #include "SwifTools/TabComplete.h" @@ -843,11 +844,7 @@ void QtChatWindow::handleActionButtonClicked() { } } else if (result == invite) { - bool ok; - QString jid = QInputDialog::getText(this, tr("Enter person's address"), tr("Address:"), QLineEdit::Normal, "", &ok); - if (ok) { - onInvitePersonToThisMUCRequest(JID(Q2PSTRING(jid)), ""); - } + onInvitePersonToThisMUCRequest(); } } @@ -908,4 +905,10 @@ void QtChatWindow::addMUCInvitation(const std::string& senderName, const JID& ji previousMessageKind_ = PreviousMessageWasMUCInvite; } + +InviteToChatWindow* QtChatWindow::createInviteToChatWindow() { + return new QtInviteToChatWindow(this); +} + + } |