diff options
Diffstat (limited to 'Swift/QtUI/QtChatWindow.cpp')
-rw-r--r-- | Swift/QtUI/QtChatWindow.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp index b1b9f83..88df2e9 100644 --- a/Swift/QtUI/QtChatWindow.cpp +++ b/Swift/QtUI/QtChatWindow.cpp @@ -12,12 +12,13 @@ #include <QApplication> #include <QBoxLayout> #include <QCloseEvent> #include <QComboBox> #include <QCursor> +#include <QDebug> #include <QFileDialog> #include <QFileInfo> #include <QInputDialog> #include <QLabel> #include <QLineEdit> #include <QMenu> @@ -31,14 +32,12 @@ #include <QTextDocument> #include <QTextEdit> #include <QTime> #include <QToolButton> #include <QUrl> -#include <qdebug.h> - #include <Swiften/Base/Log.h> #include <Swift/Controllers/Roster/ContactRosterItem.h> #include <Swift/Controllers/Roster/Roster.h> #include <Swift/Controllers/Roster/RosterItem.h> #include <Swift/Controllers/Settings/SettingsProvider.h> @@ -286,16 +285,16 @@ void QtChatWindow::handleKeyPressEvent(QKeyEvent* event) { messageLog_->handleKeyPressEvent(event); } } void QtChatWindow::beginCorrection() { boost::optional<AlertID> newCorrectingAlert; - if (correctionEnabled_ == ChatWindow::Maybe) { + if (correctionEnabled_ == Maybe) { newCorrectingAlert = addAlert(Q2PSTRING(tr("This chat may not support message correction. If you send a correction anyway, it may appear as a duplicate message"))); } - else if (correctionEnabled_ == ChatWindow::No) { + else if (correctionEnabled_ == No) { newCorrectingAlert = addAlert(Q2PSTRING(tr("This chat does not support message correction. If you send a correction anyway, it will appear as a duplicate message"))); } if (newCorrectingAlert) { if (correctingAlert_) { removeAlert(*correctingAlert_); @@ -610,13 +609,13 @@ void QtChatWindow::dragEnterEvent(QDragEnterEvent *event) { } } } } void QtChatWindow::dropEvent(QDropEvent *event) { - if (fileTransferEnabled_ == ChatWindow::Yes && event->mimeData()->hasUrls()) { + if (fileTransferEnabled_ == Yes && event->mimeData()->hasUrls()) { if (event->mimeData()->urls().size() == 1) { onSendFileRequest(Q2PSTRING(event->mimeData()->urls().at(0).toLocalFile())); } else { std::string messageText(Q2PSTRING(tr("Sending of multiple files at once isn't supported at this time."))); ChatMessage message; |