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
4092127d
Commit
4092127d
authored
May 07, 2010
by
Luci Stanescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced use of Qt4.6+ methods
parent
604008e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
contacts.py
blink/contacts.py
+8
-3
No files found.
blink/contacts.py
View file @
4092127d
...
...
@@ -646,9 +646,14 @@ class ContactModel(QAbstractListModel):
Contact
(
group
,
'VUC Conference'
,
'200901@login.zipdx.com'
,
'icons/200901@login.zipdx.com.png'
)]
contacts
.
sort
(
key
=
attrgetter
(
'name'
))
items
=
[
group
]
+
contacts
self
.
beginResetModel
()
self
.
items
=
items
self
.
endResetModel
()
if
self
.
items
:
self
.
beginRemoveRows
(
QModelIndex
(),
0
,
len
(
self
.
items
)
-
1
)
del
self
.
items
[:]
self
.
endRemoveRows
()
if
items
:
self
.
beginInsertRows
(
QModelIndex
(),
0
,
len
(
items
)
-
1
)
self
.
items
=
items
self
.
endInsertRows
()
for
position
,
item
in
enumerate
(
self
.
items
):
if
type
(
item
)
is
ContactGroup
:
self
.
contact_list
.
openPersistentEditor
(
self
.
index
(
position
))
...
...
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