[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/plugins/filemanager
From: Hamish Rodda <rodda () kde ! org>
Date: 2007-10-17 8:18:04
Message-ID: 1192609084.088464.1299.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 726209 by rodda:
Make the file manager's actions' shortcuts only trigger when the file manager has \
focus (ie, set shortcutContext to WidgetContext). This should work when we upgrade \
to Qt 4.4 (a feature to allow keystrokes on subwidgets to respond to shortcutContext \
actions in parent widgets was implemented)
M +6 -0 filemanager.cpp
--- trunk/KDE/kdevplatform/plugins/filemanager/filemanager.cpp #726208:726209
@@ -246,17 +246,23 @@
void FileManager::setupActions()
{
KAction *action = KStandardAction::up(this, SLOT(goLeft()), this);
+ action->setShortcutContext(Qt::WidgetShortcut);
d->addToolButton(action);
+ addAction(action);
action = KStandardAction::home(this, SLOT(goHome()), this);
+ action->setShortcutContext(Qt::WidgetShortcut);
d->addToolButton(action);
+ addAction(action);
action = new KAction(this);
+ action->setShortcutContext(Qt::WidgetShortcut);
action->setIcon(KIcon("folder-new"));
action->setText(i18n("New Folder..."));
action->setToolTip(i18n("New Folder"));
connect(action, SIGNAL(triggered(bool)), this, SLOT(newFolder()));
d->addToolButton(action);
+ addAction(action);
}
#include "filemanager.moc"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic