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
ce278352
Commit
ce278352
authored
Sep 24, 2010
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better signal handler names
parent
22500c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
accounts.py
blink/accounts.py
+6
-6
No files found.
blink/accounts.py
View file @
ce278352
...
...
@@ -168,8 +168,8 @@ class AccountSelector(QComboBox):
def
__init__
(
self
,
parent
=
None
):
super
(
AccountSelector
,
self
)
.
__init__
(
parent
)
self
.
currentIndexChanged
[
int
]
.
connect
(
self
.
selection_c
hanged
)
self
.
model
()
.
dataChanged
.
connect
(
self
.
data_c
hanged
)
self
.
currentIndexChanged
[
int
]
.
connect
(
self
.
_SH_SelectionC
hanged
)
self
.
model
()
.
dataChanged
.
connect
(
self
.
_SH_DataC
hanged
)
self
.
view
()
.
setItemDelegate
(
AccountDelegate
(
self
.
view
()))
notification_center
=
NotificationCenter
()
...
...
@@ -177,11 +177,11 @@ class AccountSelector(QComboBox):
notification_center
.
add_observer
(
self
,
name
=
"SIPAccountManagerDidStart"
)
def
setModel
(
self
,
model
):
self
.
model
()
.
dataChanged
.
disconnect
(
self
.
data_c
hanged
)
model
.
dataChanged
.
connect
(
self
.
data_c
hanged
)
self
.
model
()
.
dataChanged
.
disconnect
(
self
.
_SH_DataC
hanged
)
model
.
dataChanged
.
connect
(
self
.
_SH_DataC
hanged
)
super
(
AccountSelector
,
self
)
.
setModel
(
model
)
def
data_c
hanged
(
self
,
topLeft
,
bottomRight
):
def
_SH_DataC
hanged
(
self
,
topLeft
,
bottomRight
):
index
=
self
.
currentIndex
()
if
topLeft
.
row
()
<=
index
<=
bottomRight
.
row
():
account_info
=
self
.
itemData
(
index
)
.
toPyObject
()
...
...
@@ -192,7 +192,7 @@ class AccountSelector(QComboBox):
palette
.
setColor
(
QPalette
.
Text
,
Qt
.
gray
)
self
.
setPalette
(
palette
)
def
selection_c
hanged
(
self
,
index
):
def
_SH_SelectionC
hanged
(
self
,
index
):
if
index
==
-
1
:
return
account_info
=
self
.
itemData
(
index
)
.
toPyObject
()
...
...
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