make possible for wallpaper plugins to align with

the plugin combobox
This commit is contained in:
Marco Martin 2013-08-13 20:30:36 +02:00
parent 4c2a1046c2
commit 7515f665c7

View File

@ -24,7 +24,7 @@ import QtQuick.Layouts 1.0
ColumnLayout { ColumnLayout {
id: root id: root
spacing: _m property int formAlignment: pluginComboBox.x
//BEGIN functions //BEGIN functions
function saveConfig() { function saveConfig() {
@ -50,7 +50,7 @@ ColumnLayout {
var data = configDialog.wallpaperConfigModel.get(i); var data = configDialog.wallpaperConfigModel.get(i);
for(var j in data) print(j) for(var j in data) print(j)
if (configDialog.currentWallpaper == data.pluginName) { if (configDialog.currentWallpaper == data.pluginName) {
pluginCombobox.currentIndex = i pluginComboBox.currentIndex = i
break; break;
} }
} }
@ -59,11 +59,11 @@ ColumnLayout {
Row { Row {
spacing: 4 spacing: 4
QtControls.Label { QtControls.Label {
anchors.verticalCenter: pluginCombobox.verticalCenter anchors.verticalCenter: pluginComboBox.verticalCenter
text: "Wallpaper plugin:" text: "Wallpaper plugin:"
} }
QtControls.ComboBox { QtControls.ComboBox {
id: pluginCombobox id: pluginComboBox
model: configDialog.wallpaperConfigModel model: configDialog.wallpaperConfigModel
textRole: "name" textRole: "name"
onCurrentIndexChanged: { onCurrentIndexChanged: {