[Marble-commits] KDE/kdeedu/marble/src

Dennis Nienhüser earthwings at gentoo.org
Sun Apr 3 13:21:51 CEST 2011


SVN commit 1226939 by nienhueser:

Use a different icon to indicate that a routing address/place search has no results.


 AM            icons/16x16/task-accepted.png  
 AM            icons/16x16/task-attention.png  
 M  +3 -0      lib/routing/RoutingInputWidget.cpp  
 M  +2 -0      marble.qrc  


--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingInputWidget.cpp #1226938:1226939
@@ -361,6 +361,9 @@
 {
     d->m_progressTimer.stop();
     d->setProgressAnimationEnabled( false );
+    bool const hasResults = d->m_placemarkModel->rowCount() > 0;
+    QString const icon = hasResults ? ":/icons/16x16/task-accepted.png" : ":/icons/16x16/task-attention.png";
+    d->m_menuButton->setIcon( QIcon( icon ) );
     emit searchFinished( this );
 }
 
--- trunk/KDE/kdeedu/marble/src/marble.qrc #1226938:1226939
@@ -45,6 +45,8 @@
     <file>icons/flag.png</file>
     <file>icons/gps.png</file>
     <file>icons/crosshairs.png</file>
+    <file>icons/16x16/task-accepted.png</file>
+    <file>icons/16x16/task-attention.png</file>
     <file>icons/16x16/edit-clear-locationbar-ltr.png</file>
     <file>icons/16x16/edit-clear-locationbar-rtl.png</file>
     <file>icons/22x22/edit-clear-locationbar-ltr.png</file>


More information about the Marble-commits mailing list