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
142c8b28
Commit
142c8b28
authored
Mar 16, 2015
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially reverted patch to remove unnecessary code to disable DND
parent
946d5abe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
contacts.py
blink/contacts.py
+14
-0
No files found.
blink/contacts.py
View file @
142c8b28
...
...
@@ -1598,9 +1598,11 @@ class GroupWidget(base_class, ui_class):
self
.
setupUi
(
self
)
self
.
selected
=
False
self
.
drop_indicator
=
None
self
.
_disable_dnd
=
False
self
.
label_widget
.
setFocusProxy
(
self
)
self
.
name_view
.
setCurrentWidget
(
self
.
label_widget
)
self
.
name_editor
.
editingFinished
.
connect
(
self
.
_end_editing
)
self
.
collapse_button
.
pressed
.
connect
(
self
.
_collapse_button_pressed
)
@
property
def
editing
(
self
):
...
...
@@ -1655,6 +1657,18 @@ class GroupWidget(base_class, ui_class):
def
edit
(
self
):
self
.
_start_editing
()
def
_collapse_button_pressed
(
self
):
self
.
_disable_dnd
=
True
def
mousePressEvent
(
self
,
event
):
self
.
_disable_dnd
=
False
super
(
GroupWidget
,
self
)
.
mousePressEvent
(
event
)
def
mouseMoveEvent
(
self
,
event
):
if
self
.
_disable_dnd
:
return
super
(
GroupWidget
,
self
)
.
mouseMoveEvent
(
event
)
def
paintEvent
(
self
,
event
):
painter
=
QPainter
(
self
)
rect
=
self
.
rect
()
...
...
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