Commit 70f2243b authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

QmlJS Live Preview: Added title to anim speed context menu

parent 9b656eb1
......@@ -190,7 +190,8 @@ void QmlInspectorToolbar::createActions(const Core::Context &context)
QMenu *playSpeedMenu = new QMenu(configBar);
QActionGroup *playSpeedMenuActions = new QActionGroup(this);
playSpeedMenuActions->setExclusive(true);
playSpeedMenu->addAction(tr("Animation Speed"));
playSpeedMenu->addSeparator();
m_defaultAnimSpeedAction = playSpeedMenu->addAction(tr("1x"), this, SLOT(changeToDefaultAnimSpeed()));
m_defaultAnimSpeedAction->setCheckable(true);
m_defaultAnimSpeedAction->setChecked(true);
......@@ -212,6 +213,10 @@ void QmlInspectorToolbar::createActions(const Core::Context &context)
m_tenthAnimSpeedAction->setCheckable(true);
playSpeedMenuActions->addAction(m_tenthAnimSpeedAction);
m_menuPauseAction = playSpeedMenu->addAction(tr("Pause"), this, SLOT(activatePauseOnClick()));
m_menuPauseAction->setCheckable(true);
playSpeedMenuActions->addAction(m_menuPauseAction);
configBarLayout->addWidget(createToolButton(am->command(ProjectExplorer::Constants::DEBUG)->action()));
configBarLayout->addWidget(createToolButton(am->command(ProjectExplorer::Constants::STOP)->action()));
configBarLayout->addWidget(createToolButton(am->command(QmlJSInspector::Constants::DESIGNMODE_ACTION)->action()));
......
......@@ -89,6 +89,7 @@ private:
QAction *m_fourthAnimSpeedAction;
QAction *m_eighthAnimSpeedAction;
QAction *m_tenthAnimSpeedAction;
QAction *m_menuPauseAction;
bool m_emitSignals;
bool m_isRunning;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment