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
f0d576f6
Commit
f0d576f6
authored
Apr 29, 2010
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored the code that initializes the contact list views
parent
d6529484
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
contacts.py
blink/contacts.py
+2
-0
mainwindow.py
blink/mainwindow.py
+4
-6
No files found.
blink/contacts.py
View file @
f0d576f6
...
...
@@ -693,6 +693,7 @@ class ContactSearchModel(QSortFilterProxyModel):
class
ContactListView
(
QListView
):
def
__init__
(
self
,
parent
=
None
):
super
(
ContactListView
,
self
)
.
__init__
(
parent
)
self
.
setItemDelegate
(
ContactDelegate
(
self
))
self
.
setDragEnabled
(
True
)
self
.
setAcceptDrops
(
True
)
self
.
setDropIndicatorShown
(
False
)
...
...
@@ -869,6 +870,7 @@ class ContactListView(QListView):
class
ContactSearchListView
(
QListView
):
def
__init__
(
self
,
parent
=
None
):
super
(
ContactSearchListView
,
self
)
.
__init__
(
parent
)
self
.
setItemDelegate
(
ContactDelegate
(
self
))
self
.
setDragEnabled
(
True
)
self
.
setAcceptDrops
(
True
)
self
.
setDropIndicatorShown
(
False
)
...
...
blink/mainwindow.py
View file @
f0d576f6
...
...
@@ -9,7 +9,7 @@ from PyQt4 import uic
from
PyQt4.QtCore
import
Qt
from
PyQt4.QtGui
import
QBrush
,
QColor
,
QPainter
,
QPen
,
QPixmap
from
blink.contacts
import
Contact
Delegate
,
Contact
Model
,
ContactSearchModel
from
blink.contacts
import
ContactModel
,
ContactSearchModel
from
blink.resources
import
Resources
...
...
@@ -28,15 +28,13 @@ class MainWindow(base_class, ui_class):
self
.
_setup_identities
()
self
.
contact_model
=
ContactModel
(
self
)
self
.
contact_list
.
setModel
(
self
.
contact_model
)
self
.
contact_list
.
setItemDelegate
(
ContactDelegate
(
self
.
contact_list
))
self
.
contact_model
.
test
()
self
.
contact_search_model
=
ContactSearchModel
(
self
.
contact_model
,
self
)
self
.
contact_list
.
setModel
(
self
.
contact_model
)
self
.
search_list
.
setModel
(
self
.
contact_search_model
)
self
.
search_list
.
setItemDelegate
(
ContactDelegate
(
self
.
search_list
))
self
.
search_box
.
textChanged
.
connect
(
self
.
contact_search_model
.
setFilterFixedString
)
self
.
contact_model
.
test
()
self
.
contacts_panel
.
sibling_panel
=
self
.
sessions_panel
self
.
contacts_panel
.
sibling_name
=
u'Sessions'
self
.
sessions_panel
.
sibling_panel
=
self
.
contacts_panel
...
...
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