forked from qt-creator/qt-creator
Git: Simplify action creation methods
* Use a common method to do the basic setup for all the different actions. Change-Id: I92e1d959c45e70c8145b7665dde8827edaf2331d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -150,9 +150,13 @@ protected:
|
||||
bool submitEditorAboutToClose() override;
|
||||
|
||||
private:
|
||||
Core::Command *createCommand(QAction *action, Core::ActionContainer *ac, Core::Id id,
|
||||
const Core::Context &context, bool addToLocator,
|
||||
const std::function<void()> &callback, const QKeySequence &keys);
|
||||
Utils::ParameterAction *createParameterAction(Core::ActionContainer *ac,
|
||||
const QString &defaultText, const QString ¶meterText,
|
||||
Core::Id id, const Core::Context &context, bool addToLocator,
|
||||
const std::function<void()> &callback,
|
||||
const QKeySequence &keys = QKeySequence());
|
||||
|
||||
QAction *createFileAction(Core::ActionContainer *ac,
|
||||
|
||||
Reference in New Issue
Block a user