mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 13:18:06 +00:00
feat(ui/views/App/Main/MainWindow): can launch a conference in the header bar
This commit is contained in:
parent
7bbd11b655
commit
7eb331dd4c
4 changed files with 19 additions and 1 deletions
|
|
@ -61,7 +61,6 @@ public:
|
|||
return mNotifier;
|
||||
}
|
||||
|
||||
QQuickWindow *getCallsWindow ();
|
||||
QQuickWindow *getMainWindow () const;
|
||||
|
||||
bool hasFocus () const;
|
||||
|
|
@ -74,6 +73,7 @@ public:
|
|||
exit(APP_CODE_RESTART);
|
||||
}
|
||||
|
||||
Q_INVOKABLE QQuickWindow *getCallsWindow ();
|
||||
Q_INVOKABLE QQuickWindow *getSettingsWindow ();
|
||||
|
||||
Q_INVOKABLE static void smartShowWindow (QQuickWindow *window);
|
||||
|
|
|
|||
|
|
@ -32,6 +32,10 @@ Window {
|
|||
rightPaned.close()
|
||||
}
|
||||
|
||||
function openConferenceManager () {
|
||||
Logic.openConferenceManager()
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
minimumHeight: CallsWindowStyle.minimumHeight
|
||||
|
|
|
|||
|
|
@ -66,6 +66,14 @@ function setView (view, props) {
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
function openConferenceManager () {
|
||||
var App = Linphone.App
|
||||
var callsWindow = App.getCallsWindow()
|
||||
|
||||
App.smartShowWindow(callsWindow)
|
||||
callsWindow.openConferenceManager()
|
||||
}
|
||||
|
||||
function manageAccounts () {
|
||||
window.attachVirtualWindow(Qt.resolvedUrl('ManageAccounts.qml'))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -174,6 +174,12 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
|
||||
ActionButton {
|
||||
icon: 'new_conference'
|
||||
|
||||
onClicked: Logic.openConferenceManager()
|
||||
}
|
||||
|
||||
ActionButton {
|
||||
icon: 'burger_menu'
|
||||
iconSize: MainWindowStyle.menuBurgerSize
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue