24 lines
438 B
QML
24 lines
438 B
QML
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 {
|
||
|
|
text: layout.text
|
||
|
|
}
|
||
|
|
Item {
|
||
|
|
Layout.fillWidth: true
|
||
|
|
}
|
||
|
|
}
|