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,10 +32,12 @@ ApplicationWindow { ...@@ -29,10 +32,12 @@ ApplicationWindow {
// Navigation bar. // Navigation bar.
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
TabBar { RowLayout {
id: navigationBar
Layout.fillWidth: true Layout.fillWidth: true
spacing: 0
TabBar {
id: tabBar
TabButton { TabButton {
text: qsTr('sipAccountsTab') text: qsTr('sipAccountsTab')
...@@ -65,6 +70,14 @@ ApplicationWindow { ...@@ -65,6 +70,14 @@ ApplicationWindow {
} }
} }
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: TabButtonStyle.text.height
color: TabButtonStyle.backgroundColor.normal
}
}
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// Content. // Content.
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
...@@ -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