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
12a047fc
Commit
12a047fc
authored
Jul 07, 2010
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified switch button resizing during DND
parent
33511928
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
buttons.py
blink/widgets/buttons.py
+3
-8
No files found.
blink/widgets/buttons.py
View file @
12a047fc
...
...
@@ -317,19 +317,14 @@ class SwitchViewButton(QPushButton):
self
.
__dict__
[
'dnd_active'
]
=
value
if
value
is
True
:
self
.
dnd_timer
.
phase
=
0
self
.
original_height
=
self
.
height
()
self
.
setStyleSheet
(
self
.
dnd_style_sheet1
)
self
.
setText
(
self
.
button_dnd_text
[
self
.
view
])
self
.
original_height
=
self
.
height
()
self
.
setMinimumHeight
(
40
)
self
.
setMaximumHeight
(
40
)
self
.
resize
(
self
.
width
(),
40
)
self
.
setFixedHeight
(
40
)
else
:
self
.
setStyleSheet
(
''
)
self
.
setText
(
self
.
button_text
[
self
.
view
])
height
=
self
.
original_height
self
.
setMinimumHeight
(
height
)
self
.
setMaximumHeight
(
height
)
self
.
resize
(
self
.
width
(),
height
)
self
.
setFixedHeight
(
self
.
original_height
)
dnd_active
=
property
(
_get_dnd_active
,
_set_dnd_active
)
del
_get_dnd_active
,
_set_dnd_active
...
...
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