Commit b5ad7eb5 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Settings/SettingsWindow): fill tab bar

parent ece8e32f
...@@ -3,12 +3,15 @@ import QtQuick.Controls 2.1 ...@@ -3,12 +3,15 @@ import QtQuick.Controls 2.1
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import Common 1.0 import Common 1.0
import Common.Styles 1.0
import App.Styles 1.0 import App.Styles 1.0
// ============================================================================= // =============================================================================
ApplicationWindow { ApplicationWindow {
id: window
height: SettingsWindowStyle.height height: SettingsWindowStyle.height
width: SettingsWindowStyle.width width: SettingsWindowStyle.width
...@@ -29,39 +32,49 @@ ApplicationWindow { ...@@ -29,39 +32,49 @@ ApplicationWindow {
// Navigation bar. // Navigation bar.
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
TabBar { RowLayout {
id: navigationBar
Layout.fillWidth: true Layout.fillWidth: true
spacing: 0
TabButton {
text: qsTr('sipAccountsTab') TabBar {
width: implicitWidth id: tabBar
}
TabButton {
TabButton { text: qsTr('sipAccountsTab')
text: qsTr('audioTab') width: implicitWidth
width: implicitWidth }
}
TabButton {
TabButton { text: qsTr('audioTab')
text: qsTr('videoTab') width: implicitWidth
width: implicitWidth }
}
TabButton {
TabButton { text: qsTr('videoTab')
text: qsTr('callsAndChatTab') width: implicitWidth
width: implicitWidth }
TabButton {
text: qsTr('callsAndChatTab')
width: implicitWidth
}
TabButton {
text: qsTr('networkTab')
width: implicitWidth
}
TabButton {
text: qsTr('uiTab')
width: implicitWidth
}
} }
TabButton { Rectangle {
text: qsTr('networkTab') Layout.fillWidth: true
width: implicitWidth Layout.preferredHeight: TabButtonStyle.text.height
}
TabButton { color: TabButtonStyle.backgroundColor.normal
text: qsTr('uiTab')
width: implicitWidth
} }
} }
...@@ -72,7 +85,8 @@ ApplicationWindow { ...@@ -72,7 +85,8 @@ ApplicationWindow {
StackLayout { StackLayout {
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
currentIndex: navigationBar.currentIndex
currentIndex: tabBar.currentIndex
SettingsSipAccounts {} SettingsSipAccounts {}
SettingsAudio {} SettingsAudio {}
...@@ -92,6 +106,8 @@ ApplicationWindow { ...@@ -92,6 +106,8 @@ ApplicationWindow {
Layout.rightMargin: SettingsWindowStyle.validButton.rightMargin Layout.rightMargin: SettingsWindowStyle.validButton.rightMargin
text: qsTr('validButton') text: qsTr('validButton')
onClicked: window.hide()
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment