fix display glitches
diff --git a/chatdialog.cpp b/chatdialog.cpp
index 72e9600..6a26cc3 100644
--- a/chatdialog.cpp
+++ b/chatdialog.cpp
@@ -39,6 +39,9 @@
m_scene->setSceneRect(rect);
listView->setStyleSheet("QListView { alternate-background-color: white; background: #F0F0F0; color: darkGreen; font: bold large; }");
+ listView->setEditTriggers(QAbstractItemView::NoEditTriggers);
+ listView->setDragDropMode(QAbstractItemView::NoDragDrop);
+ listView->setSelectionMode(QAbstractItemView::NoSelection);
m_rosterModel = new QStringListModel(this);
listView->setModel(m_rosterModel);
@@ -163,6 +166,9 @@
{
return;
}
+#ifdef __DEBUG
+ std::cout << "Displaying msg from: " << msg.from() << ", data is: " << msg.data() << std::endl;
+#endif
QTextCharFormat nickFormat;
nickFormat.setForeground(Qt::darkGreen);
@@ -209,6 +215,7 @@
QTextCursor nextCursor(textEdit->textCursor());
+ nextCursor.movePosition(QTextCursor::End);
table = nextCursor.insertTable(1, 1, tableFormat);
table->cellAt(0, 0).firstCursorPosition().insertText(msg.data().c_str());
QScrollBar *bar = textEdit->verticalScrollBar();
diff --git a/chatdialog.ui b/chatdialog.ui
index f0cf462..8e60c81 100644
--- a/chatdialog.ui
+++ b/chatdialog.ui
@@ -10,7 +10,7 @@
</rect>
</property>
<property name="windowTitle">
- <string>Chronos -- Powered By UCLA Sync</string>
+ <string>Retreat Chat -- Powered By Chronos</string>
</property>
<!-- start of root layout -->
<layout class="QVBoxLayout">