summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-11-06 13:47:39 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-11-06 13:47:39 (GMT)
commit25fffbda360fafeeea4164feb4995d088d0a7718 (patch)
tree6661b50fc905642d749de9aec151b6202edda007 /Swift
parentf429b784c6b54e042cc19c06dc4351ec496d619a (diff)
downloadswift-contrib-25fffbda360fafeeea4164feb4995d088d0a7718.zip
swift-contrib-25fffbda360fafeeea4164feb4995d088d0a7718.tar.bz2
Provide a tooltip for, and show the start of, MUC subjects
Change-Id: I21bc1391dbd3af9789ec794fc26e67255767647a Resolves: #1151
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index e345f73..28549f8 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -889,6 +889,8 @@ void QtChatWindow::setAvailableOccupantActions(const std::vector<OccupantAction>
void QtChatWindow::setSubject(const std::string& subject) {
//subject_->setVisible(!subject.empty());
subject_->setText(P2QSTRING(subject));
+ subject_->setToolTip(P2QSTRING(subject));
+ subject_->setCursorPosition(0);
}
void QtChatWindow::handleActionButtonClicked() {