linphone-desktop/linphone-app/ui/modules/Common/Form/Tab/TabContainer.qml
Julien Wadel e198f5f752 Display hidden scrollbars in settings.
Add more feedback on quit reason.
Fix link color in about.
Fix window title based on the application name.
2023-01-30 11:31:08 +01:00

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
}
}
}