Files
scheincommander/IconChooserDelegateLayout.qml
T

28 lines
596 B
QML
Raw Normal View History

2023-02-18 22:46:16 +01:00
import QtQuick
import QtQuick.Controls.Material
import QtQuick.Layouts
RowLayout {
property string text
property string iconSource
id: layout
Image {
Layout.topMargin: 15
Layout.bottomMargin: 15
Layout.fillHeight: true
source: layout.iconSource
fillMode: Image.PreserveAspectFit
}
Label {
2023-02-19 04:37:03 +01:00
Layout.preferredHeight: layout.height
2023-02-18 22:46:16 +01:00
text: layout.text
2023-02-19 04:37:03 +01:00
verticalAlignment: Label.AlignVCenter
fontSizeMode: Text.VerticalFit
font.pixelSize: 20
2023-02-18 22:46:16 +01:00
}
Item {
Layout.fillWidth: true
}
}