Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
d5c8eb9d
Commit
d5c8eb9d
authored
Jun 22, 2010
by
Luci Stanescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed StreamButton alternate disabled icon
parent
1771339e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
buttons.py
blink/widgets/buttons.py
+5
-0
No files found.
blink/widgets/buttons.py
View file @
d5c8eb9d
...
...
@@ -87,6 +87,11 @@ class StreamButton(QToolButton):
for
size
in
normal_sizes
+
selected_additional_sizes
:
pixmap
=
icon
.
pixmap
(
size
,
QIcon
.
Selected
,
QIcon
.
On
)
self
.
alternate_icon
.
addPixmap
(
pixmap
,
QIcon
.
Normal
,
QIcon
.
On
)
disabled_sizes
=
icon
.
availableSizes
(
QIcon
.
Disabled
,
QIcon
.
On
)
selected_additional_sizes
=
[
size
for
size
in
selected_sizes
if
size
not
in
disabled_sizes
]
for
size
in
disabled_sizes
+
selected_additional_sizes
:
pixmap
=
icon
.
pixmap
(
size
,
QIcon
.
Selected
,
QIcon
.
On
)
self
.
alternate_icon
.
addPixmap
(
pixmap
,
QIcon
.
Disabled
,
QIcon
.
On
)
super
(
StreamButton
,
self
)
.
setIcon
(
icon
)
...
...
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