mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
70 lines
1.9 KiB
QML
70 lines
1.9 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.0
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import 'qrc:/ui/components/form'
|
|
|
|
ApplicationWindow {
|
|
header: ToolBar {
|
|
background: Rectangle {
|
|
color: '#EAEAEA'
|
|
}
|
|
height: 70
|
|
|
|
RowLayout {
|
|
anchors.fill: parent
|
|
anchors.rightMargin: 10
|
|
|
|
// Collapse.
|
|
Collapse {
|
|
image: 'qrc:/imgs/collapse.svg'
|
|
onCollapsed: {
|
|
mainWindow.height = collapsed ? 480 : 70
|
|
}
|
|
}
|
|
|
|
// User info.
|
|
// TODO
|
|
|
|
// User actions.
|
|
ToolBarButton {
|
|
onClicked: {
|
|
var component = Qt.createComponent('qrc:/ui/views/manageAccounts.qml');
|
|
if (component.status !== Component.Ready) {
|
|
console.debug('Window not ready.')
|
|
if(component.status === Component.Error) {
|
|
console.debug('Error:' + component.errorString())
|
|
}
|
|
} else {
|
|
var win = component.createObject(mainWindow);
|
|
win.show();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Search.
|
|
TextField {
|
|
signal searchTextChanged (string text)
|
|
|
|
background: Rectangle {
|
|
color: '#FFFFFF'
|
|
implicitHeight: 30
|
|
}
|
|
id: searchText
|
|
Layout.fillWidth: true
|
|
onTextChanged: searchTextChanged(text)
|
|
placeholderText: qsTr('mainSearchBarPlaceholder')
|
|
}
|
|
|
|
// Start conference.
|
|
ToolBarButton {
|
|
image: 'qrc:/imgs/start_conference.svg'
|
|
}
|
|
}
|
|
}
|
|
id: mainWindow
|
|
minimumHeight: 70
|
|
minimumWidth: 640
|
|
title: 'Linphone'
|
|
visible: true
|
|
}
|