25 lines
565 B
QML
25 lines
565 B
QML
import QtQuick 2.6
|
|
import QtQuick.Controls 2.2
|
|
import QtQuick.Layouts 1.3
|
|
|
|
RowLayout {
|
|
Image {
|
|
sourceSize.height: 2 * box.height
|
|
fillMode: Image.PreserveAspectFit
|
|
source: "../rust_qt_binding_generator.svg"
|
|
}
|
|
ComboBox {
|
|
id: box
|
|
Layout.fillWidth: true
|
|
currentIndex: qtquickIndex
|
|
model: styles
|
|
textRole: "display"
|
|
onActivated: {
|
|
if (index !== qtquickIndex) {
|
|
widgets.currentIndex = index
|
|
application.close()
|
|
}
|
|
}
|
|
}
|
|
}
|