Fixed window operation icons.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/1/head
Mavridis Philippe 4 years ago
parent 079304a40a
commit 3d5fe24755
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -347,7 +347,7 @@ void KomposeTaskWidget::initActions()
{
taskActionCollection = new TDEActionCollection( this );
actCloseTask = new TDEAction( i18n("Close"), "fileclose", Key_Delete , task,
actCloseTask = new TDEAction( i18n("Close"), "window-close", Key_Delete , task,
SLOT( close() ), taskActionCollection, "closeTask" );
actCloseTask->setToolTip(i18n("Close"));
actMinimizeRestoreTask = new TDEAction( i18n("Minimize/Restore"), "", TDEShortcut() , this,
@ -392,10 +392,11 @@ void KomposeTaskWidget::initMenu()
*/
void KomposeTaskWidget::setActionIcons( bool inverse )
{
kdDebug() << "setIconSet" << endl;
if ( ( task->isIconified() && !inverse ) || ( !task->isIconified() && inverse ) )
actMinimizeRestoreTask->setIconSet( kapp->iconLoader()->loadIconSet ( "up", TDEIcon::NoGroup, 16 ) );
actMinimizeRestoreTask->setIconSet( kapp->iconLoader()->loadIconSet ( "go-up", TDEIcon::NoGroup, 16 ) );
else
actMinimizeRestoreTask->setIconSet( kapp->iconLoader()->loadIconSet ( "bottom", TDEIcon::NoGroup, 16 ) );
actMinimizeRestoreTask->setIconSet( kapp->iconLoader()->loadIconSet ( "go-bottom", TDEIcon::NoGroup, 16 ) );
}
void KomposeTaskWidget::slotMinimizeRestoreToggled()

Loading…
Cancel
Save