Moved definition of widget instance actions to the module so other parts of the system can no about them.
The plugin system will create the Action objects and bind them to the specified slots of the specific widget instances.
This commit is contained in:
parent
d0c4dabe8b
commit
f4f2474a81
21 changed files with 418 additions and 204 deletions
|
|
@ -25,9 +25,9 @@ void MenuAction::setMenuLocation(MenuLocation menu_location)
|
|||
m_menuLocation = std::move(menu_location);
|
||||
}
|
||||
|
||||
void MenuAction::setShortCut(QKeySequence shortcut)
|
||||
void MenuAction::setShortcut(QKeySequence shortcut)
|
||||
{
|
||||
m_shortCut = std::move(shortcut);
|
||||
m_shortcut = std::move(shortcut);
|
||||
}
|
||||
|
||||
void MenuAction::setText(QString text)
|
||||
|
|
@ -40,9 +40,9 @@ void MenuAction::setToolTip(QString tooltip)
|
|||
m_toolTip = std::move(tooltip);
|
||||
}
|
||||
|
||||
const QKeySequence& MenuAction::shortCut() const
|
||||
const QKeySequence& MenuAction::shortcut() const
|
||||
{
|
||||
return m_shortCut;
|
||||
return m_shortcut;
|
||||
}
|
||||
|
||||
const QString& MenuAction::text() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue