Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tusooa Zhu
Krita
Commits
9087e641
Commit
9087e641
authored
Dec 30, 2016
by
Dmitry Kazakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Connect nice icons by Timothee Giet to real audio controls :)
parent
dfd51c1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
plugins/dockers/animation/timeline_frames_view.cpp
plugins/dockers/animation/timeline_frames_view.cpp
+14
-1
No files found.
plugins/dockers/animation/timeline_frames_view.cpp
View file @
9087e641
...
...
@@ -195,7 +195,7 @@ TimelineFramesView::TimelineFramesView(QWidget *parent)
m_d
->
audioOptionsButton
=
new
QToolButton
(
this
);
m_d
->
audioOptionsButton
->
setAutoRaise
(
true
);
m_d
->
audioOptionsButton
->
setIcon
(
KisIconUtils
::
loadIcon
(
"
zoom-horizontal
"
));
m_d
->
audioOptionsButton
->
setIcon
(
KisIconUtils
::
loadIcon
(
"
audio-none
"
));
m_d
->
audioOptionsButton
->
setSizePolicy
(
QSizePolicy
::
Minimum
,
QSizePolicy
::
Minimum
);
m_d
->
audioOptionsButton
->
setPopupMode
(
QToolButton
::
InstantPopup
);
...
...
@@ -437,6 +437,19 @@ void TimelineFramesView::slotUpdateAudioActions()
}
m_d
->
audioMuteAction
->
setChecked
(
m_d
->
model
->
isAudioMuted
());
QIcon
audioIcon
;
if
(
currentFile
.
isEmpty
())
{
audioIcon
=
KisIconUtils
::
loadIcon
(
"audio-none"
);
}
else
{
if
(
m_d
->
model
->
isAudioMuted
())
{
audioIcon
=
KisIconUtils
::
loadIcon
(
"audio-volume-mute"
);
}
else
{
audioIcon
=
KisIconUtils
::
loadIcon
(
"audio-volume-high"
);
}
}
m_d
->
audioOptionsButton
->
setIcon
(
audioIcon
);
}
void
TimelineFramesView
::
slotUpdateInfiniteFramesCount
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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