From c0d943b01a7f6b386a04f57c4154a7416924b8cd Mon Sep 17 00:00:00 2001 From: Martijn Klingens Date: Sat, 5 May 2001 18:28:41 +0000 Subject: [PATCH] Added some icons to the popup menus svn path=/trunk/kdebase/kwin/; revision=95333 --- workspace.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 5aa66c4da0..3bf38e118f 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -19,6 +19,7 @@ Copyright (C) 1999, 2000 Matthias Ettrich #include #include #include +#include #include @@ -1326,13 +1327,13 @@ QPopupMenu* Workspace::clientPopup( Client* c ) connect( desk_popup, SIGNAL( activated(int) ), this, SLOT( sendToDesktop(int) ) ); connect( desk_popup, SIGNAL( aboutToShow() ), this, SLOT( desktopPopupAboutToShow() ) ); - popup->insertItem( i18n("&Move"), Options::MoveOp ); + popup->insertItem( SmallIconSet( "move" ), i18n("&Move"), Options::MoveOp ); popup->insertItem( i18n("&Size"), Options::ResizeOp ); popup->insertItem( i18n("Mi&nimize"), Options::IconifyOp ); popup->insertItem( i18n("Ma&ximize"), Options::MaximizeOp ); popup->insertItem( i18n("Sh&ade"), Options::ShadeOp ); - popup->insertItem( i18n("Always &On Top"), Options::StaysOnTopOp ); - popup->insertItem( i18n("Sto&re Settings"), Options::ToggleStoreSettingsOp ); + popup->insertItem( SmallIconSet( "attach" ), i18n("Always &On Top"), Options::StaysOnTopOp ); + popup->insertItem( SmallIconSet( "filesave" ), i18n("Sto&re Settings"), Options::ToggleStoreSettingsOp ); popup->insertSeparator(); @@ -1344,7 +1345,7 @@ QPopupMenu* Workspace::clientPopup( Client* c ) popup->insertSeparator(); QString k = KAccel::keyToString( keys->currentKey( "Window close" ), true ); - popup->insertItem(i18n("&Close")+'\t'+k, Options::CloseOp ); + popup->insertItem( SmallIconSet( "exit" ), i18n("&Close")+'\t'+k, Options::CloseOp ); } return popup; }