mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
871e29d031
This one is designed to be fixed size and space efficient, non editable. It's used in the statistics page for now and looks much better than what we have elsewhere, so the style should propagate to the rest of them as well, but this is trickier for the once that are editable - and of course the fixed width might also not be appropriate in other places. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
22 lines
639 B
QML
22 lines
639 B
QML
// SPDX-License-Identifier: GPL-2.0
|
|
import QtQuick 2.11
|
|
import QtQuick.Controls 2.4
|
|
import QtQuick.Layouts 1.11
|
|
import org.kde.kirigami 2.4 as Kirigami
|
|
|
|
TemplateComboBox {
|
|
id: cb
|
|
Layout.fillWidth: false
|
|
Layout.preferredHeight: Kirigami.Units.gridUnit * 2
|
|
Layout.preferredWidth: Kirigami.Units.gridUnit * 8
|
|
contentItem: Text {
|
|
text: cb.displayText
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
anchors.right: indicator.left
|
|
anchors.left: cb.left
|
|
color: subsurfaceTheme.textColor
|
|
leftPadding: Kirigami.Units.smallSpacing * 0.5
|
|
rightPadding: Kirigami.Units.smallSpacing * 0.5
|
|
verticalAlignment: Text.AlignVCenter
|
|
}
|
|
}
|