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
6fd7702b
Commit
6fd7702b
authored
Jun 02, 2010
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed no longer needed uncollapse timer in contact list
parent
f15fa4e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
contacts.py
blink/contacts.py
+2
-17
No files found.
blink/contacts.py
View file @
6fd7702b
...
@@ -998,15 +998,6 @@ class ContactListView(QListView):
...
@@ -998,15 +998,6 @@ class ContactListView(QListView):
self
.
actions
.
send_files
=
QAction
(
"Send File(s)..."
,
self
,
triggered
=
self
.
_AH_SendFiles
)
self
.
actions
.
send_files
=
QAction
(
"Send File(s)..."
,
self
,
triggered
=
self
.
_AH_SendFiles
)
self
.
actions
.
request_remote_desktop
=
QAction
(
"Request Remote Desktop"
,
self
,
triggered
=
self
.
_AH_RequestRemoteDesktop
)
self
.
actions
.
request_remote_desktop
=
QAction
(
"Request Remote Desktop"
,
self
,
triggered
=
self
.
_AH_RequestRemoteDesktop
)
self
.
actions
.
share_my_desktop
=
QAction
(
"Share My Desktop"
,
self
,
triggered
=
self
.
_AH_ShareMyDesktop
)
self
.
actions
.
share_my_desktop
=
QAction
(
"Share My Desktop"
,
self
,
triggered
=
self
.
_AH_ShareMyDesktop
)
self
.
restore_timer
=
QTimer
(
self
)
self
.
restore_timer
.
setSingleShot
(
True
)
self
.
restore_timer
.
setInterval
(
1250
)
self
.
restore_timer
.
timeout
.
connect
(
self
.
_restore_groups
)
self
.
needs_restore
=
False
def
_restore_groups
(
self
):
for
group
in
self
.
model
()
.
contact_groups
:
group
.
restore_state
()
self
.
needs_restore
=
False
self
.
needs_restore
=
False
def
paintEvent
(
self
,
event
):
def
paintEvent
(
self
,
event
):
...
@@ -1165,8 +1156,8 @@ class ContactListView(QListView):
...
@@ -1165,8 +1156,8 @@ class ContactListView(QListView):
def
startDrag
(
self
,
supported_actions
):
def
startDrag
(
self
,
supported_actions
):
super
(
ContactListView
,
self
)
.
startDrag
(
supported_actions
)
super
(
ContactListView
,
self
)
.
startDrag
(
supported_actions
)
if
self
.
needs_restore
:
if
self
.
needs_restore
:
self
.
restore_timer
.
stop
()
for
group
in
self
.
model
()
.
contact_groups
:
self
.
_restore_groups
()
group
.
restore_state
()
self
.
needs_restore
=
False
self
.
needs_restore
=
False
def
dragEnterEvent
(
self
,
event
):
def
dragEnterEvent
(
self
,
event
):
...
@@ -1191,7 +1182,6 @@ class ContactListView(QListView):
...
@@ -1191,7 +1182,6 @@ class ContactListView(QListView):
group
.
save_state
()
group
.
save_state
()
group
.
collapse
()
group
.
collapse
()
self
.
needs_restore
=
True
self
.
needs_restore
=
True
self
.
restore_timer
.
stop
()
event
.
accept
()
event
.
accept
()
self
.
setState
(
self
.
DraggingState
)
self
.
setState
(
self
.
DraggingState
)
...
@@ -1201,8 +1191,6 @@ class ContactListView(QListView):
...
@@ -1201,8 +1191,6 @@ class ContactListView(QListView):
self
.
drop_indicator_index
=
QModelIndex
()
self
.
drop_indicator_index
=
QModelIndex
()
for
group
in
self
.
model
()
.
contact_groups
:
for
group
in
self
.
model
()
.
contact_groups
:
group
.
widget
.
drop_indicator
=
None
group
.
widget
.
drop_indicator
=
None
if
self
.
needs_restore
:
self
.
restore_timer
.
start
()
def
dragMoveEvent
(
self
,
event
):
def
dragMoveEvent
(
self
,
event
):
super
(
ContactListView
,
self
)
.
dragMoveEvent
(
event
)
super
(
ContactListView
,
self
)
.
dragMoveEvent
(
event
)
...
@@ -1232,9 +1220,6 @@ class ContactListView(QListView):
...
@@ -1232,9 +1220,6 @@ class ContactListView(QListView):
event
.
accept
()
event
.
accept
()
for
group
in
model
.
contact_groups
:
for
group
in
model
.
contact_groups
:
group
.
widget
.
drop_indicator
=
None
group
.
widget
.
drop_indicator
=
None
if
self
.
needs_restore
:
group
.
restore_state
()
self
.
needs_restore
=
False
super
(
ContactListView
,
self
)
.
dropEvent
(
event
)
super
(
ContactListView
,
self
)
.
dropEvent
(
event
)
self
.
viewport
()
.
update
(
self
.
visualRect
(
self
.
drop_indicator_index
))
self
.
viewport
()
.
update
(
self
.
visualRect
(
self
.
drop_indicator_index
))
self
.
drop_indicator_index
=
QModelIndex
()
self
.
drop_indicator_index
=
QModelIndex
()
...
...
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