this is a repeatable action
svn path=/trunk/KDE/kdelibs/; revision=1124339
This commit is contained in:
parent
0b5d39a0db
commit
af942eaf1d
@ -93,6 +93,7 @@ public:
|
|||||||
KAction *lockAction = actions.addAction("lock widgets");
|
KAction *lockAction = actions.addAction("lock widgets");
|
||||||
QObject::connect(lockAction, SIGNAL(triggered(bool)), q, SLOT(toggleImmutability()));
|
QObject::connect(lockAction, SIGNAL(triggered(bool)), q, SLOT(toggleImmutability()));
|
||||||
lockAction->setText(i18n("Lock Widgets"));
|
lockAction->setText(i18n("Lock Widgets"));
|
||||||
|
lockAction->setAutoRepeat(true);
|
||||||
lockAction->setIcon(KIcon("object-locked"));
|
lockAction->setIcon(KIcon("object-locked"));
|
||||||
lockAction->setData(AbstractToolBox::ControlTool);
|
lockAction->setData(AbstractToolBox::ControlTool);
|
||||||
lockAction->setShortcut(KShortcut("alt+d, l"));
|
lockAction->setShortcut(KShortcut("alt+d, l"));
|
||||||
|
Loading…
Reference in New Issue
Block a user