forked from qt-creator/qt-creator
ActionManager: Small cleanups
No code change Change-Id: Iaceebaa1dccbd3667f1736a7167aedecabc9d4a2 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -380,11 +380,6 @@ void ActionManager::setContext(const Context &context)
|
|||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ActionManagerPrivate::ActionManagerPrivate() :
|
|
||||||
m_presentationModeEnabled(false)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
ActionManagerPrivate::~ActionManagerPrivate()
|
ActionManagerPrivate::~ActionManagerPrivate()
|
||||||
{
|
{
|
||||||
// first delete containers to avoid them reacting to command deletion
|
// first delete containers to avoid them reacting to command deletion
|
||||||
|
@@ -61,7 +61,6 @@ public:
|
|||||||
typedef QHash<Id, Action *> IdCmdMap;
|
typedef QHash<Id, Action *> IdCmdMap;
|
||||||
typedef QHash<Id, ActionContainerPrivate *> IdContainerMap;
|
typedef QHash<Id, ActionContainerPrivate *> IdContainerMap;
|
||||||
|
|
||||||
explicit ActionManagerPrivate();
|
|
||||||
~ActionManagerPrivate();
|
~ActionManagerPrivate();
|
||||||
|
|
||||||
void setContext(const Context &context);
|
void setContext(const Context &context);
|
||||||
@@ -76,19 +75,16 @@ public:
|
|||||||
|
|
||||||
void readUserSettings(Id id, Action *cmd);
|
void readUserSettings(Id id, Action *cmd);
|
||||||
|
|
||||||
public slots:
|
|
||||||
void containerDestroyed();
|
void containerDestroyed();
|
||||||
|
|
||||||
void actionTriggered();
|
void actionTriggered();
|
||||||
|
|
||||||
public:
|
|
||||||
IdCmdMap m_idCmdMap;
|
IdCmdMap m_idCmdMap;
|
||||||
|
|
||||||
IdContainerMap m_idContainerMap;
|
IdContainerMap m_idContainerMap;
|
||||||
|
|
||||||
Context m_context;
|
Context m_context;
|
||||||
|
|
||||||
bool m_presentationModeEnabled;
|
bool m_presentationModeEnabled = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
Reference in New Issue
Block a user