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
491dea20
Commit
491dea20
authored
May 21, 2010
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not display the menu indicator arrow on the dial buttons
parent
4a520cc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
buttons.py
blink/widgets/buttons.py
+18
-0
blink.ui
resources/blink.ui
+7
-2
No files found.
blink/widgets/buttons.py
0 → 100644
View file @
491dea20
# Copyright (c) 2010 AG Projects. See LICENSE for details.
#
__all__
=
[
'ToolButton'
]
from
PyQt4.QtGui
import
QStyle
,
QStyleOptionToolButton
,
QStylePainter
,
QToolButton
class
ToolButton
(
QToolButton
):
"""A custom QToolButton that doesn't show a menu indicator arrow"""
def
paintEvent
(
self
,
event
):
painter
=
QStylePainter
(
self
)
option
=
QStyleOptionToolButton
()
self
.
initStyleOption
(
option
)
option
.
features
&=
~
QStyleOptionToolButton
.
HasMenu
painter
.
drawComplexControl
(
QStyle
.
CC_ToolButton
,
option
)
resources/blink.ui
View file @
491dea20
...
...
@@ -553,7 +553,7 @@ buttons below.</string>
</widget>
</item>
<item>
<widget
class=
"
Q
ToolButton"
name=
"im_session_button"
>
<widget
class=
"ToolButton"
name=
"im_session_button"
>
<property
name=
"minimumSize"
>
<size>
<width>
29
</width>
...
...
@@ -581,7 +581,7 @@ buttons below.</string>
</widget>
</item>
<item>
<widget
class=
"
Q
ToolButton"
name=
"ds_session_button"
>
<widget
class=
"ToolButton"
name=
"ds_session_button"
>
<property
name=
"minimumSize"
>
<size>
<width>
29
</width>
...
...
@@ -836,6 +836,11 @@ buttons below.</string>
<extends>
QComboBox
</extends>
<header>
blink.accounts
</header>
</customwidget>
<customwidget>
<class>
ToolButton
</class>
<extends>
QToolButton
</extends>
<header>
blink.widgets.buttons
</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>
search_box
</tabstop>
...
...
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