[Marble-commits] KDE/kdeedu/marble/src/plugins/render/wikipedia

Torsten Rahn tackat at kde.org
Sun Aug 9 19:40:02 CEST 2009


SVN commit 1009317 by rahn:


* --Warnings about missing argument
* Better markup for the tooltip
 


 M  +5 -5      WikipediaItem.cpp  


--- trunk/KDE/kdeedu/marble/src/plugins/render/wikipedia/WikipediaItem.cpp #1009316:1009317
@@ -222,14 +222,14 @@
     toolTip += "margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">";
     if ( summary().isEmpty() ) {
         toolTip += "%1";
+        toolTip += "</p></body></html>\n";
+        setToolTip( toolTip.arg( name() ) );
     }
     else {
-        toolTip += tr( "%1:<br>%2", "Title:\nSummary" );
+        toolTip += tr( "<b>%1</b><br>%2", "Title:\nSummary" );
+        toolTip += "</p></body></html>\n";
+        setToolTip( toolTip.arg( name() ).arg( summary() ) );
     }
-
-    toolTip += "</p></body></html>\n";
-
-    setToolTip( toolTip.arg( name() ).arg( summary() ) );
 }
 
 bool WikipediaItem::showThumbnail()


More information about the Marble-commits mailing list