--- a/TODO.txt Tue Aug 20 19:09:16 2013 +0100
+++ b/TODO.txt Tue Aug 20 20:03:27 2013 +0100
@@ -4,7 +4,6 @@
* Use Aduim's Message Styles for the conversation window
* Buddy status icons showing
* Formatting toolbar on the conversation window
@@ -31,8 +30,7 @@
* Add recent statuses to the change status menu
* Display the currently used icon on the buddy list window
* Enable the selection of a new buddy icon
-* Conversation room list display
-* Conversation text entry
+* Conversation room list display status icons ===========================================================
@@ -44,3 +42,6 @@
* Add Accounts to tray icon
* Account icons now correctly changing colour on connect and disconnect
+* Conversation room list display +* Conversation text entry --- a/src/QuailConvWindow.cpp Tue Aug 20 19:09:16 2013 +0100
+++ b/src/QuailConvWindow.cpp Tue Aug 20 20:03:27 2013 +0100
@@ -473,13 +473,14 @@
qDebug() << "QQuailConvChat::send()";
QString text = entry->toPlainText();
- if (text[text.length() - 1] == '\n')
- text.remove(text.length() - 1, 1);
+ if (text[text.length() - 1] == '\n') + text.remove(text.length() - 1, 1); - purple_conv_chat_send(PURPLE_CONV_CHAT(conv), text.toStdString().c_str());
+ purple_conv_chat_send(PURPLE_CONV_CHAT(conv), text.toStdString().c_str()); @@ -662,14 +663,14 @@
qDebug() << "QQuailConvIm::send()";
QString text = entry->toPlainText();
- if (text[text.length() - 1] == '\n')
- text.remove(text.length() - 1, 1);
+ if (text[text.length() - 1] == '\n') + text.remove(text.length() - 1, 1); - purple_conv_im_send(PURPLE_CONV_IM(conv), text.toStdString().c_str());
+ purple_conv_im_send(PURPLE_CONV_IM(conv), text.toStdString().c_str()); --- a/src/QuailMultiLineEdit.cpp Tue Aug 20 19:09:16 2013 +0100
+++ b/src/QuailMultiLineEdit.cpp Tue Aug 20 20:03:27 2013 +0100
@@ -21,6 +21,8 @@
#include "QuailMultiLineEdit.h"
@@ -63,6 +65,7 @@
QQuailMultiLineEdit::keyPressEvent(QKeyEvent *event)
+ qDebug() << "QQuailMultiLineEdit::keyPressEvent"; @@ -94,14 +97,21 @@
history.prepend(this->toPlainText());
+ qDebug() << "QQuailMultiLineEdit::keyPressEvent.1"; else if (key == Qt::Key_Tab)
/* TODO Tab completion */
+ else if (key == Qt::Key_Return && event->modifiers() == Qt::CTRL) - else if (key == Qt::Key_Down)
+ else if (key == Qt::Key_Down || key == Qt::Key_Return)