[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r3150: Add tooltips to tree items in the help browser's table of co (vidalia/trunk/src/vidalia/help/browser)



Author: edmanm
Date: 2008-09-25 00:05:21 -0400 (Thu, 25 Sep 2008)
New Revision: 3150

Modified:
   vidalia/trunk/src/vidalia/help/browser/helpbrowser.cpp
Log:
Add tooltips to tree items in the help browser's table of contents. Some of
these labels are a bit long.


Modified: vidalia/trunk/src/vidalia/help/browser/helpbrowser.cpp
===================================================================
--- vidalia/trunk/src/vidalia/help/browser/helpbrowser.cpp	2008-09-24 01:17:30 UTC (rev 3149)
+++ vidalia/trunk/src/vidalia/help/browser/helpbrowser.cpp	2008-09-25 04:05:21 UTC (rev 3150)
@@ -200,9 +200,13 @@
                                  QTreeWidgetItem *parent)
 {
   QTreeWidgetItem *topic = new QTreeWidgetItem(parent);
-  topic->setText(0, topicElement.attribute(ATTRIBUTE_TOPIC_NAME));
+  QString label = topicElement.attribute(ATTRIBUTE_TOPIC_NAME);
+
+  topic->setText(0, label);
+  topic->setToolTip(0, label);
   topic->setData(0, ROLE_TOPIC_ID, topicElement.attribute(ATTRIBUTE_TOPIC_ID));
   topic->setData(0, ROLE_TOPIC_QRC_PATH, getResourcePath(topicElement));
+
   return topic;
 }