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
48379e75
Commit
48379e75
authored
Jun 02, 2010
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Syncronized the conference button state with the selected session
parent
8738da3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
mainwindow.py
blink/mainwindow.py
+10
-0
No files found.
blink/mainwindow.py
View file @
48379e75
...
...
@@ -52,6 +52,8 @@ class MainWindow(base_class, ui_class):
self
.
session_list
.
setModel
(
self
.
session_model
)
self
.
session_model
.
test
()
self
.
session_list
.
selectionModel
()
.
selectionChanged
.
connect
(
self
.
session_list_selection_changed
)
self
.
contacts_panel
.
sibling_panel
=
self
.
sessions_panel
self
.
contacts_panel
.
sibling_name
=
u'Switch to Calls'
self
.
sessions_panel
.
sibling_panel
=
self
.
contacts_panel
...
...
@@ -148,6 +150,14 @@ class MainWindow(base_class, ui_class):
selected_items
=
self
.
contact_list
.
selectionModel
()
.
selectedIndexes
()
self
.
enable_call_buttons
(
len
(
selected_items
)
==
1
and
isinstance
(
self
.
contact_model
.
data
(
selected_items
[
0
]),
Contact
))
def
session_list_selection_changed
(
self
,
selected
,
deselected
):
selected_indexes
=
selected
.
indexes
()
if
not
selected_indexes
:
self
.
conference_button
.
setChecked
(
False
)
else
:
active_session
=
self
.
session_model
.
data
(
selected_indexes
[
0
])
self
.
conference_button
.
setChecked
(
active_session
.
conference
is
not
None
)
def
switch_main_view
(
self
):
widget
=
self
.
main_view
.
currentWidget
()
.
sibling_panel
self
.
main_view
.
setCurrentWidget
(
widget
)
...
...
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