Layout fixes for QQC2
parent
60e7595b3d
commit
0a143b6bad
|
@ -0,0 +1,24 @@
|
|||
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: "../logo.svg"
|
||||
}
|
||||
ComboBox {
|
||||
id: box
|
||||
Layout.fillWidth: true
|
||||
currentIndex: qtquickIndex
|
||||
model: styles
|
||||
textRole: "display"
|
||||
onActivated: {
|
||||
if (index !== qtquickIndex) {
|
||||
widgets.currentIndex = index
|
||||
application.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue