Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/JobDialog.qml
Show All 19 Lines | |||||
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 | ||
21 | import org.kde.purpose 1.0 | 21 | import org.kde.purpose 1.0 | ||
22 | 22 | | |||
23 | ApplicationWindow | 23 | ApplicationWindow | ||
24 | { | 24 | { | ||
25 | id: window | 25 | id: window | ||
26 | 26 | | |||
27 | flags: Qt.Dialog | 27 | flags: Qt.Dialog | ||
28 | title: configuration.pluginName | ||||
28 | 29 | | |||
29 | width: Math.max(screen.width/3, 200) | 30 | width: Math.max(screen.width/3, 200) | ||
30 | height: Math.max(screen.height/2, 300) | 31 | height: Math.max(screen.height/2, 300) | ||
31 | 32 | | |||
32 | property bool finished: false | 33 | property bool finished: false | ||
33 | property var configuration | 34 | property var configuration | ||
34 | property QtObject q | 35 | property QtObject q | ||
35 | 36 | | |||
Show All 30 Lines | 62 | StackView { | |||
66 | } | 67 | } | ||
67 | Layout.minimumWidth: (currentItem ? currentItem.Layout.minimumWidth : 0) + 2*anchors.margins | 68 | Layout.minimumWidth: (currentItem ? currentItem.Layout.minimumWidth : 0) + 2*anchors.margins | ||
68 | Layout.minimumHeight: (currentItem ? currentItem.Layout.minimumHeight : 0) + 2*anchors.margins | 69 | Layout.minimumHeight: (currentItem ? currentItem.Layout.minimumHeight : 0) + 2*anchors.margins | ||
69 | } | 70 | } | ||
70 | 71 | | |||
71 | Component { | 72 | Component { | ||
72 | id: configWizardComponent | 73 | id: configWizardComponent | ||
73 | Page { | 74 | Page { | ||
74 | header: Label { | | |||
75 | TextMetrics { | | |||
76 | id: fontMetrics | | |||
77 | } | | |||
78 | font.weight: Font.Light | | |||
79 | font.styleName: "Light" | | |||
80 | font.pointSize: fontMetrics.font.pointSize * 2 | | |||
81 | elide: Text.ElideRight | | |||
82 | maximumLineCount: 1 | | |||
83 | text: i18n("%1 - %2", window.configuration.pluginName, window.configuration.pluginTypeName) | | |||
84 | } | | |||
85 | PurposeWizard { | 75 | PurposeWizard { | ||
86 | id: wiz | 76 | id: wiz | ||
87 | configuration: window.configuration | 77 | configuration: window.configuration | ||
88 | focus: true | 78 | focus: true | ||
89 | 79 | | |||
90 | anchors.fill: parent | 80 | anchors.fill: parent | ||
91 | } | 81 | } | ||
92 | 82 | | |||
Show All 33 Lines |