[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/systemsettings
From: Urs Wolfer <uwolfer () kde ! org>
Date: 2008-10-07 20:16:26
Message-ID: 1223410586.713021.26882.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 868980 by uwolfer:
Use a standard action here; less code and I hoped to get the standard shortcut for it \
(alt+left)... which seems not the case. Any ideas? CCMAIL:kde@michael-jansen.biz
M +2 -3 mainwindow.cpp
--- trunk/KDE/kdebase/workspace/systemsettings/mainwindow.cpp #868979:868980
@@ -204,10 +204,9 @@
{
addAction(actionCollection()->addAction(KStandardAction::Quit, \
qobject_cast<QObject*>(this), SLOT(close())));
- showOverviewAction = actionCollection()->addAction("showAll");
- showOverviewAction->setIcon( KIcon(QApplication::layoutDirection() == \
Qt::RightToLeft?"go-next":"go-previous") ); + showOverviewAction = \
KStandardAction::back(this, SLOT(showOverview()), actionCollection()); + \
actionCollection()->addAction("showAll", showOverviewAction); \
showOverviewAction->setText( i18n("Overview") );
- connect(showOverviewAction, SIGNAL(triggered()), this, SLOT(showOverview()));
showOverviewAction->setEnabled(false);
addAction(showOverviewAction);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic