monero-gui/components/AdvancedOptionsItem.qml

69 lines
1.8 KiB
QML
Raw Normal View History

2020-04-16 21:55:22 +00:00
import QtQuick 2.9
import QtQuick.Layouts 1.1
import "../components" as MoneroComponents
RowLayout {
id: advancedOptionsItem
2020-04-16 21:55:22 +00:00
property alias title: title.text
property alias tooltip: title.tooltip
2020-04-16 21:55:22 +00:00
property alias button1: button1
property alias button2: button2
property alias button3: button3
2020-04-16 21:55:22 +00:00
RowLayout {
id: titlecolumn
2021-11-27 13:56:28 +00:00
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
property var language: persistentSettings.language
Layout.preferredWidth: language == "Deutsch" ? 280 : language == "Español" ? 250 : language == "Français" ? 235 : 220
Layout.maximumWidth: language == "Deutsch" ? 280 : language == "Español" ? 250 : language == "Français" ? 235 : 220
2020-04-16 21:55:22 +00:00
Layout.leftMargin: 10
2021-11-27 13:56:28 +00:00
MoneroComponents.TextPlain {
2020-04-16 21:55:22 +00:00
id: title
tooltipIconVisible: true
2020-04-16 21:55:22 +00:00
}
Rectangle {
id: separator
Layout.fillWidth: true
height: 10
color: "transparent"
}
}
ColumnLayout {
Layout.fillWidth: false
Layout.alignment: Qt.AlignTop | Qt.AlignLeft
spacing: 4
2020-04-16 21:55:22 +00:00
RowLayout {
Layout.fillWidth: false
spacing: 12
Layout.alignment: Qt.AlignTop | Qt.AlignLeft
2020-04-16 21:55:22 +00:00
StandardButton {
id: button1
small: true
primary: false
2020-04-16 21:55:22 +00:00
visible: button1.text
}
2020-04-16 21:55:22 +00:00
StandardButton {
id: button2
small: true
primary: false
2020-04-16 21:55:22 +00:00
visible: button2.text
}
2020-04-16 21:55:22 +00:00
StandardButton {
id: button3
small: true
primary: false
2020-04-16 21:55:22 +00:00
visible: button3.text
}
}
}
}