summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-05-13 12:36:48 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-05-13 12:36:48 (GMT)
commit4a192bc9f70d20ac0a509dff1994d3aad812cb2d (patch)
tree99973369d23cc9768e3270d6970de36d5577dc6a /Swift/QtUI/QtJoinMUCDialog.cpp
parent705bd7256fa4812045677743fc1e939ccfd66d05 (diff)
downloadswift-4a192bc9f70d20ac0a509dff1994d3aad812cb2d.zip
swift-4a192bc9f70d20ac0a509dff1994d3aad812cb2d.tar.bz2
Remove the old Join MUC dialog
Diffstat (limited to 'Swift/QtUI/QtJoinMUCDialog.cpp')
-rw-r--r--Swift/QtUI/QtJoinMUCDialog.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/Swift/QtUI/QtJoinMUCDialog.cpp b/Swift/QtUI/QtJoinMUCDialog.cpp
deleted file mode 100644
index d459947..0000000
--- a/Swift/QtUI/QtJoinMUCDialog.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2010 Kevin Smith
- * Licensed under the GNU General Public License v3.
- * See Documentation/Licenses/GPLv3.txt for more information.
- */
-
-#include "QtJoinMUCDialog.h"
-#include "QtSwiftUtil.h"
-
-namespace Swift {
-
-QtJoinMUCDialog::QtJoinMUCDialog(const QString&, const QString&, QWidget* parent) : QDialog(parent) {
- setupUi(this);
- errorLabel_->hide();
- setAttribute(Qt::WA_DeleteOnClose, true);
- connect(buttons_, SIGNAL(accepted()), SLOT(accept()));
- connect(buttons_, SIGNAL(rejected()), SLOT(reject()));
-}
-
-void QtJoinMUCDialog::accept() {
- if (mucJID_->displayText().isEmpty()) {
- showError("You must specify a room to join.");
- return;
- }
- if (nick_->displayText().isEmpty()) {
- showError("You must specify a nickname to join a room.");
- return;
- }
- errorLabel_->hide();
- emit onJoinCommand(JID(Q2PSTRING(mucJID_->displayText())), nick_->displayText());
- QDialog::accept();
-}
-
-void QtJoinMUCDialog::showError(const QString& error) {
- errorLabel_->setText(QString("<font color='red'>%1</font>").arg(error));
- errorLabel_->show();
-}
-}