feat(ui/views/App/Main/MainWindow): can launch a conference in the header bar

This commit is contained in:
Ronan Abhamon 2017-05-22 11:12:53 +02:00
parent 7bbd11b655
commit 7eb331dd4c
4 changed files with 19 additions and 1 deletions

View file

@ -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);

View file

@ -32,6 +32,10 @@ Window {
rightPaned.close()
}
function openConferenceManager () {
Logic.openConferenceManager()
}
// ---------------------------------------------------------------------------
minimumHeight: CallsWindowStyle.minimumHeight

View file

@ -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'))
}

View file

@ -174,6 +174,12 @@ ApplicationWindow {
}
}
ActionButton {
icon: 'new_conference'
onClicked: Logic.openConferenceManager()
}
ActionButton {
icon: 'burger_menu'
iconSize: MainWindowStyle.menuBurgerSize