mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-20 21:28:07 +00:00
Add more feedback on quit reason. Fix link color in about. Fix window title based on the application name.
61 lines
1.4 KiB
QML
61 lines
1.4 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.2
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Common 1.0
|
|
import Common.Styles 1.0
|
|
import Utils 1.0
|
|
|
|
// =============================================================================
|
|
|
|
Rectangle {
|
|
default property alias _content: content.data
|
|
|
|
color: TabContainerStyle.colorModel.color
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
spacing: 0
|
|
|
|
Flickable {
|
|
id: flickable
|
|
ScrollBar.vertical: ForceScrollBar {
|
|
id: scrollBar
|
|
contentSizeTarget: flickable.contentHeight
|
|
sizeTarget: flickable.height
|
|
Component.onCompleted: updatePolicy()
|
|
}
|
|
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
|
clip: true
|
|
|
|
contentHeight: Utils.ensureArray(_content).reduce(function (acc, item) { return item.height }, 0, []) +
|
|
TabContainerStyle.topMargin + TabContainerStyle.bottomMargin
|
|
contentWidth: width
|
|
|
|
Item {
|
|
id: content
|
|
|
|
anchors {
|
|
left: parent.left
|
|
leftMargin: TabContainerStyle.leftMargin
|
|
right: parent.right
|
|
rightMargin: TabContainerStyle.rightMargin
|
|
top: parent.top
|
|
topMargin: TabContainerStyle.topMargin
|
|
}
|
|
}
|
|
}
|
|
|
|
Rectangle {
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: TabContainerStyle.separator.height
|
|
|
|
color: TabContainerStyle.separator.colorModel.color
|
|
visible: scrollBar.visible
|
|
}
|
|
}
|
|
}
|