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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src/widgets
From:       Dan Meltzer <parallelgrapefruit () gmail ! com>
Date:       2008-12-19 16:57:38
Message-ID: 1229705858.235323.15444.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 899047 by dmeltzer:

Make the icon in the playlist popup when clicking the action, as well

 M  +8 -4      ProgressiveSearchWidget.cpp  


--- trunk/extragear/multimedia/amarok/src/widgets/ProgressiveSearchWidget.cpp \
#899046:899047 @@ -29,6 +29,7 @@
 
 #include <QMenu>
 #include <QToolBar>
+#include <QToolButton>
 
 ProgressiveSearchWidget::ProgressiveSearchWidget( QWidget * parent )
     : KHBox( parent )
@@ -115,13 +116,16 @@
     playOnlyMatchesAction->setChecked( config.readEntry( "PlayOnlyMatches", true ) \
);  m_menu->addAction( playOnlyMatchesAction );
 
-    KAction * searchMenuAction = new KAction(KIcon( "preferences-other" ), i18n( \
                "Search Preferences" ), this );
-
+    KAction *searchMenuAction = new KAction(KIcon( "preferences-other" ), i18n( \
"Search Preferences" ), this );  searchMenuAction->setMenu( m_menu );
+    toolbar->addAction( searchMenuAction );
+    
+    QToolButton *tbutton = qobject_cast<QToolButton*>(toolbar->widgetForAction( \
searchMenuAction ) ); +    if( tbutton )
+        tbutton->setPopupMode( QToolButton::InstantPopup );
+    
     toolbar->setFixedHeight( m_searchEdit->sizeHint().height() );
     
-
-    toolbar->addAction( searchMenuAction );
 }
 
 


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

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