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
This commit is contained in:
parent
19b9b0cd09
commit
5361e68cb0
1 changed files with 9 additions and 9 deletions
|
@ -60,7 +60,7 @@ QMenu* Workspace::clientPopup()
|
||||||
advanced_popup->setFont(KGlobalSettings::menuFont());
|
advanced_popup->setFont(KGlobalSettings::menuFont());
|
||||||
|
|
||||||
mKeepAboveOpAction = advanced_popup->addAction( i18n("Keep &Above Others") );
|
mKeepAboveOpAction = advanced_popup->addAction( i18n("Keep &Above Others") );
|
||||||
mKeepAboveOpAction->setIcon( SmallIconSet( "up" ) );
|
mKeepAboveOpAction->setIcon( KIcon( "up" ) );
|
||||||
KAction *kaction = qobject_cast<KAction*>( keys->action("Window Above Other Windows") );
|
KAction *kaction = qobject_cast<KAction*>( keys->action("Window Above Other Windows") );
|
||||||
if ( kaction!=0 )
|
if ( kaction!=0 )
|
||||||
mKeepAboveOpAction->setShortcut( kaction->globalShortcut().primary() );
|
mKeepAboveOpAction->setShortcut( kaction->globalShortcut().primary() );
|
||||||
|
@ -68,7 +68,7 @@ QMenu* Workspace::clientPopup()
|
||||||
mKeepAboveOpAction->setData( Options::KeepAboveOp );
|
mKeepAboveOpAction->setData( Options::KeepAboveOp );
|
||||||
|
|
||||||
mKeepBelowOpAction = advanced_popup->addAction( i18n("Keep &Below Others") );
|
mKeepBelowOpAction = advanced_popup->addAction( i18n("Keep &Below Others") );
|
||||||
mKeepBelowOpAction->setIcon( SmallIconSet( "down" ) );
|
mKeepBelowOpAction->setIcon( KIcon( "down" ) );
|
||||||
kaction = qobject_cast<KAction*>( keys->action("Window Below Other Windows") );
|
kaction = qobject_cast<KAction*>( keys->action("Window Below Other Windows") );
|
||||||
if ( kaction!=0 )
|
if ( kaction!=0 )
|
||||||
mKeepBelowOpAction->setShortcut( kaction->globalShortcut().primary() );
|
mKeepBelowOpAction->setShortcut( kaction->globalShortcut().primary() );
|
||||||
|
@ -76,7 +76,7 @@ QMenu* Workspace::clientPopup()
|
||||||
mKeepBelowOpAction->setData( Options::KeepBelowOp );
|
mKeepBelowOpAction->setData( Options::KeepBelowOp );
|
||||||
|
|
||||||
mFullScreenOpAction = advanced_popup->addAction( i18n("&Fullscreen") );
|
mFullScreenOpAction = advanced_popup->addAction( i18n("&Fullscreen") );
|
||||||
mFullScreenOpAction->setIcon( SmallIconSet( "window_fullscreen" ) );
|
mFullScreenOpAction->setIcon( KIcon( "window_fullscreen" ) );
|
||||||
kaction = qobject_cast<KAction*>( keys->action("Window Fullscreen") );
|
kaction = qobject_cast<KAction*>( keys->action("Window Fullscreen") );
|
||||||
if ( kaction!=0 )
|
if ( kaction!=0 )
|
||||||
mFullScreenOpAction->setShortcut( kaction->globalShortcut().primary() );
|
mFullScreenOpAction->setShortcut( kaction->globalShortcut().primary() );
|
||||||
|
@ -91,18 +91,18 @@ QMenu* Workspace::clientPopup()
|
||||||
mNoBorderOpAction->setData( Options::NoBorderOp );
|
mNoBorderOpAction->setData( Options::NoBorderOp );
|
||||||
|
|
||||||
QAction *action = advanced_popup->addAction( i18n("Window &Shortcut...") );
|
QAction *action = advanced_popup->addAction( i18n("Window &Shortcut...") );
|
||||||
action->setIcon( SmallIconSet("key_bindings") );
|
action->setIcon( KIcon("key_bindings") );
|
||||||
kaction = qobject_cast<KAction*>( keys->action("Setup Window Shortcut") );
|
kaction = qobject_cast<KAction*>( keys->action("Setup Window Shortcut") );
|
||||||
if ( kaction!=0 )
|
if ( kaction!=0 )
|
||||||
action->setShortcut( kaction->globalShortcut().primary() );
|
action->setShortcut( kaction->globalShortcut().primary() );
|
||||||
action->setData( Options::SetupWindowShortcutOp );
|
action->setData( Options::SetupWindowShortcutOp );
|
||||||
|
|
||||||
action = advanced_popup->addAction( i18n("&Special Window Settings...") );
|
action = advanced_popup->addAction( i18n("&Special Window Settings...") );
|
||||||
action->setIcon( SmallIconSet( "wizard" ) );
|
action->setIcon( KIcon( "wizard" ) );
|
||||||
action->setData( Options::WindowRulesOp );
|
action->setData( Options::WindowRulesOp );
|
||||||
|
|
||||||
action = advanced_popup->addAction( i18n("&Special Application Settings...") );
|
action = advanced_popup->addAction( i18n("&Special Application Settings...") );
|
||||||
action->setIcon( SmallIconSet( "wizard" ) );
|
action->setIcon( KIcon( "wizard" ) );
|
||||||
action->setData( Options::ApplicationRulesOp );
|
action->setData( Options::ApplicationRulesOp );
|
||||||
|
|
||||||
action = popup->addMenu( advanced_popup );
|
action = popup->addMenu( advanced_popup );
|
||||||
|
@ -132,7 +132,7 @@ QMenu* Workspace::clientPopup()
|
||||||
}
|
}
|
||||||
|
|
||||||
mMoveOpAction = popup->addAction( i18n("&Move") );
|
mMoveOpAction = popup->addAction( i18n("&Move") );
|
||||||
mMoveOpAction->setIcon( SmallIconSet( "move" ) );
|
mMoveOpAction->setIcon( KIcon( "move" ) );
|
||||||
kaction = qobject_cast<KAction*>( keys->action("Window Move") );
|
kaction = qobject_cast<KAction*>( keys->action("Window Move") );
|
||||||
if ( kaction!=0 )
|
if ( kaction!=0 )
|
||||||
mMoveOpAction->setShortcut( kaction->globalShortcut().primary() );
|
mMoveOpAction->setShortcut( kaction->globalShortcut().primary() );
|
||||||
|
@ -170,13 +170,13 @@ QMenu* Workspace::clientPopup()
|
||||||
!KAuthorized::authorizeControlModules(Workspace::configModules(true)).isEmpty())
|
!KAuthorized::authorizeControlModules(Workspace::configModules(true)).isEmpty())
|
||||||
{
|
{
|
||||||
action = popup->addAction( i18n("Configur&e Window Behavior...") );
|
action = popup->addAction( i18n("Configur&e Window Behavior...") );
|
||||||
action->setIcon( SmallIconSet( "configure" ) );
|
action->setIcon( KIcon( "configure" ) );
|
||||||
connect( action, SIGNAL( triggered() ), this, SLOT( configureWM() ) );
|
connect( action, SIGNAL( triggered() ), this, SLOT( configureWM() ) );
|
||||||
popup->addSeparator();
|
popup->addSeparator();
|
||||||
}
|
}
|
||||||
|
|
||||||
mCloseOpAction = popup->addAction( i18n("&Close") );
|
mCloseOpAction = popup->addAction( i18n("&Close") );
|
||||||
mCloseOpAction->setIcon( SmallIconSet( "fileclose" ) );
|
mCloseOpAction->setIcon( KIcon( "fileclose" ) );
|
||||||
kaction = qobject_cast<KAction*>( keys->action("Window Close") );
|
kaction = qobject_cast<KAction*>( keys->action("Window Close") );
|
||||||
if ( kaction!=0 )
|
if ( kaction!=0 )
|
||||||
mCloseOpAction->setShortcut( kaction->globalShortcut().primary() );
|
mCloseOpAction->setShortcut( kaction->globalShortcut().primary() );
|
||||||
|
|
Loading…
Reference in a new issue