From 5361e68cb0d983ebbdc1cda83ea8b873a9b3c2ca Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 19 Dec 2006 23:34:40 +0000 Subject: [PATCH] move to using KIcon where possible also got rid of the clear button in the khelpcenter navigator. gets rid of 18 billion warnings when compiling. svn path=/trunk/KDE/kdebase/workspace/; revision=615045 --- useractions.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/useractions.cpp b/useractions.cpp index 29329a595d..ccb9e435ad 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -60,7 +60,7 @@ QMenu* Workspace::clientPopup() advanced_popup->setFont(KGlobalSettings::menuFont()); mKeepAboveOpAction = advanced_popup->addAction( i18n("Keep &Above Others") ); - mKeepAboveOpAction->setIcon( SmallIconSet( "up" ) ); + mKeepAboveOpAction->setIcon( KIcon( "up" ) ); KAction *kaction = qobject_cast( keys->action("Window Above Other Windows") ); if ( kaction!=0 ) mKeepAboveOpAction->setShortcut( kaction->globalShortcut().primary() ); @@ -68,7 +68,7 @@ QMenu* Workspace::clientPopup() mKeepAboveOpAction->setData( Options::KeepAboveOp ); mKeepBelowOpAction = advanced_popup->addAction( i18n("Keep &Below Others") ); - mKeepBelowOpAction->setIcon( SmallIconSet( "down" ) ); + mKeepBelowOpAction->setIcon( KIcon( "down" ) ); kaction = qobject_cast( keys->action("Window Below Other Windows") ); if ( kaction!=0 ) mKeepBelowOpAction->setShortcut( kaction->globalShortcut().primary() ); @@ -76,7 +76,7 @@ QMenu* Workspace::clientPopup() mKeepBelowOpAction->setData( Options::KeepBelowOp ); mFullScreenOpAction = advanced_popup->addAction( i18n("&Fullscreen") ); - mFullScreenOpAction->setIcon( SmallIconSet( "window_fullscreen" ) ); + mFullScreenOpAction->setIcon( KIcon( "window_fullscreen" ) ); kaction = qobject_cast( keys->action("Window Fullscreen") ); if ( kaction!=0 ) mFullScreenOpAction->setShortcut( kaction->globalShortcut().primary() ); @@ -91,18 +91,18 @@ QMenu* Workspace::clientPopup() mNoBorderOpAction->setData( Options::NoBorderOp ); QAction *action = advanced_popup->addAction( i18n("Window &Shortcut...") ); - action->setIcon( SmallIconSet("key_bindings") ); + action->setIcon( KIcon("key_bindings") ); kaction = qobject_cast( keys->action("Setup Window Shortcut") ); if ( kaction!=0 ) action->setShortcut( kaction->globalShortcut().primary() ); action->setData( Options::SetupWindowShortcutOp ); action = advanced_popup->addAction( i18n("&Special Window Settings...") ); - action->setIcon( SmallIconSet( "wizard" ) ); + action->setIcon( KIcon( "wizard" ) ); action->setData( Options::WindowRulesOp ); action = advanced_popup->addAction( i18n("&Special Application Settings...") ); - action->setIcon( SmallIconSet( "wizard" ) ); + action->setIcon( KIcon( "wizard" ) ); action->setData( Options::ApplicationRulesOp ); action = popup->addMenu( advanced_popup ); @@ -132,7 +132,7 @@ QMenu* Workspace::clientPopup() } mMoveOpAction = popup->addAction( i18n("&Move") ); - mMoveOpAction->setIcon( SmallIconSet( "move" ) ); + mMoveOpAction->setIcon( KIcon( "move" ) ); kaction = qobject_cast( keys->action("Window Move") ); if ( kaction!=0 ) mMoveOpAction->setShortcut( kaction->globalShortcut().primary() ); @@ -170,13 +170,13 @@ QMenu* Workspace::clientPopup() !KAuthorized::authorizeControlModules(Workspace::configModules(true)).isEmpty()) { action = popup->addAction( i18n("Configur&e Window Behavior...") ); - action->setIcon( SmallIconSet( "configure" ) ); + action->setIcon( KIcon( "configure" ) ); connect( action, SIGNAL( triggered() ), this, SLOT( configureWM() ) ); popup->addSeparator(); } mCloseOpAction = popup->addAction( i18n("&Close") ); - mCloseOpAction->setIcon( SmallIconSet( "fileclose" ) ); + mCloseOpAction->setIcon( KIcon( "fileclose" ) ); kaction = qobject_cast( keys->action("Window Close") ); if ( kaction!=0 ) mCloseOpAction->setShortcut( kaction->globalShortcut().primary() );