[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/marble/src
From:       Dennis Nienhüser <earthwings () gentoo ! org>
Date:       2011-04-03 11:21:51
Message-ID: 20110403112151.3CB8FAC8CE () svn ! kde ! org
[Download RAW message or body]

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>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic