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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src
From:       Mike Diehl <madpenguin8 () yahoo ! com>
Date:       2005-06-01 2:59:50
Message-ID: 1117594790.662818.18889.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 420417 by mdiehl:

Custom menu items now go into "Scripts" submenu.


 M  +5 -3      playlist.cpp  


--- trunk/extragear/multimedia/amarok/src/playlist.cpp #420416:420417
@@ -1,5 +1,5 @@
 /* Copyright 2002-2004 Mark Kretschmann, Max Howell
- * Copyright 2005 Seb Ruiz
+ * Copyright 2005 Seb Ruiz, Mike Diehl
  * Licensed as described in the COPYING file found in the root of this distribution
  * Maintainer: Max Howell <max.howell@methylblue.com>
 
@@ -2383,11 +2383,13 @@
     popup.setItemEnabled( REMOVE, !isLocked() ); // can't remove things when \
                playlist is locked,
     popup.setItemEnabled( DELETE, !isLocked() ); // that's the whole point
 
+    KPopupMenu customMenu;
     if ( !m_customItemTitle.isEmpty() ){
-    popup.insertSeparator();
         for ( QStringList::Iterator it = m_customItemTitle.begin(); it != \
                m_customItemTitle.end(); ++it ) {
-            popup.insertItem ( SmallIconSet( "pencil"), ( *it ), CUSTOM_ITEM );
+            customMenu.insertItem ( SmallIconSet( "pencil"), ( *it ), CUSTOM_ITEM );
         }
+    popup.insertSeparator();
+    popup.insertItem( SmallIconSet( "pencil" ), i18n("Scripts"), &customMenu );
     }
 
     switch( popup.exec( p ) )


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

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