forked from qt-creator/qt-creator
QmlJS Live Preview: Added title to anim speed context menu
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user