qml: wizard button padding, wizardcomponent now a Pane
This commit is contained in:
@@ -11,6 +11,7 @@ ElDialog {
|
|||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
padding: 0
|
||||||
|
|
||||||
title: wizardTitle + (pages.currentItem.title ? ' - ' + pages.currentItem.title : '')
|
title: wizardTitle + (pages.currentItem.title ? ' - ' + pages.currentItem.title : '')
|
||||||
iconSource: '../../../icons/electrum.png'
|
iconSource: '../../../icons/electrum.png'
|
||||||
@@ -103,6 +104,7 @@ ElDialog {
|
|||||||
id: pages
|
id: pages
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
interactive: false
|
interactive: false
|
||||||
|
|
||||||
clip:true
|
clip:true
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
import QtQuick.Controls 2.3
|
||||||
|
import QtQuick.Controls.Material 2.0
|
||||||
|
|
||||||
Item {
|
Pane {
|
||||||
id: root
|
id: root
|
||||||
signal next
|
signal next
|
||||||
signal prev
|
signal prev
|
||||||
@@ -10,6 +12,13 @@ Item {
|
|||||||
property bool last: false
|
property bool last: false
|
||||||
property string title: ''
|
property string title: ''
|
||||||
|
|
||||||
|
leftPadding: constants.paddingXLarge
|
||||||
|
rightPadding: constants.paddingXLarge
|
||||||
|
|
||||||
|
background: Rectangle {
|
||||||
|
color: Material.dialogColor
|
||||||
|
}
|
||||||
|
|
||||||
onAccept: {
|
onAccept: {
|
||||||
apply()
|
apply()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user