[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kile] src: Use 'KActionCollection::setDefaultShortcut' for the 'tag_tabulator' action
From:       Michel Ludwig <michel.ludwig () kdemail ! net>
Date:       2015-12-31 14:53:01
Message-ID: E1aEeb7-0004Eq-Si () scm ! kde ! org
[Download RAW message or body]

Git commit 27185af2e4f562fbeb7683a0f5ef939eeb6b3d86 by Michel Ludwig.
Committed on 31/12/2015 at 14:52.
Pushed by mludwig into branch 'master'.

Use 'KActionCollection::setDefaultShortcut' for the 'tag_tabulator' action

M  +1    -1    src/kilestdactions.cpp

http://commits.kde.org/kile/27185af2e4f562fbeb7683a0f5ef939eeb6b3d86

diff --git a/src/kilestdactions.cpp b/src/kilestdactions.cpp
index 54859b6..0b478b5 100644
--- a/src/kilestdactions.cpp
+++ b/src/kilestdactions.cpp
@@ -145,7 +145,7 @@ void setupStdTags(KileInfo *ki, const QObject* receiver, \
KActionCollection *acti  
 	action = actionCollection->addAction("tag_tabulator", ki->editorExtension(), \
SLOT(insertIntelligentTabulator()));  action->setText(i18n("Smart Tabulator"));
-	action->setShortcut(QKeySequence(Qt::ALT + Qt::Key_Ampersand));
+	actionCollection->setDefaultShortcut(action, QKeySequence(Qt::ALT + \
Qt::Key_Ampersand));  
 	// new tags (dani 29.01.2005)
 	KActionCollection* ac = actionCollection;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic