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
8d887edd
Commit
8d887edd
authored
Mar 17, 2015
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly paint the ZRTPWidget background when WA_NoSystemBackground is set
parent
a17a4361
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
zrtp.py
blink/widgets/zrtp.py
+9
-1
No files found.
blink/widgets/zrtp.py
View file @
8d887edd
...
...
@@ -6,7 +6,8 @@ __all__ = ['ZRTPWidget']
from
PyQt4
import
uic
from
PyQt4.QtCore
import
pyqtSignal
from
PyQt4.QtCore
import
Qt
,
pyqtSignal
from
PyQt4.QtGui
import
QStyle
,
QStyleOption
,
QStylePainter
from
blink.resources
import
Resources
...
...
@@ -68,6 +69,13 @@ class ZRTPWidget(base_class, ui_class):
self
.
closed
.
emit
()
self
.
_check_name_changes
()
def
paintEvent
(
self
,
event
):
option
=
QStyleOption
()
option
.
initFrom
(
self
)
painter
=
QStylePainter
(
self
)
painter
.
setRenderHint
(
QStylePainter
.
Antialiasing
,
True
)
painter
.
drawPrimitive
(
QStyle
.
PE_Widget
if
self
.
testAttribute
(
Qt
.
WA_NoSystemBackground
)
else
QStyle
.
PE_Frame
,
option
)
def
_check_name_changes
(
self
):
peer_name
=
self
.
peer_name_value
.
text
()
if
peer_name
!=
self
.
__dict__
[
'peer_name'
]:
...
...
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