Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
70f2243b
Commit
70f2243b
authored
Jul 26, 2010
by
Lasse Holmstedt
Browse files
QmlJS Live Preview: Added title to anim speed context menu
parent
9b656eb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljsinspector/qmlinspectortoolbar.cpp
View file @
70f2243b
...
...
@@ -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
()));
...
...
src/plugins/qmljsinspector/qmlinspectortoolbar.h
View file @
70f2243b
...
...
@@ -89,6 +89,7 @@ private:
QAction
*
m_fourthAnimSpeedAction
;
QAction
*
m_eighthAnimSpeedAction
;
QAction
*
m_tenthAnimSpeedAction
;
QAction
*
m_menuPauseAction
;
bool
m_emitSignals
;
bool
m_isRunning
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment