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 26 Lines | 58 | StackView { | |||
62 | } | 63 | } | ||
63 | Layout.minimumWidth: (currentItem ? currentItem.Layout.minimumWidth : 0) + 2*anchors.margins | 64 | Layout.minimumWidth: (currentItem ? currentItem.Layout.minimumWidth : 0) + 2*anchors.margins | ||
64 | Layout.minimumHeight: (currentItem ? currentItem.Layout.minimumHeight : 0) + 2*anchors.margins | 65 | Layout.minimumHeight: (currentItem ? currentItem.Layout.minimumHeight : 0) + 2*anchors.margins | ||
65 | } | 66 | } | ||
66 | 67 | | |||
67 | Component { | 68 | Component { | ||
68 | id: configWizardComponent | 69 | id: configWizardComponent | ||
69 | Page { | 70 | Page { | ||
70 | header: Label { | | |||
71 | TextMetrics { | | |||
72 | id: fontMetrics | | |||
73 | } | | |||
74 | font.weight: Font.Light | | |||
75 | font.styleName: "Light" | | |||
76 | font.pointSize: fontMetrics.font.pointSize * 2 | | |||
77 | elide: Text.ElideRight | | |||
78 | maximumLineCount: 1 | | |||
79 | text: i18n("%1 - %2", window.configuration.pluginName, window.configuration.pluginTypeName) | | |||
80 | } | | |||
81 | PurposeWizard { | 71 | PurposeWizard { | ||
82 | id: wiz | 72 | id: wiz | ||
83 | configuration: window.configuration | 73 | configuration: window.configuration | ||
84 | focus: true | 74 | focus: true | ||
85 | 75 | | |||
86 | anchors.fill: parent | 76 | anchors.fill: parent | ||
87 | } | 77 | } | ||
88 | 78 | | |||
Show All 32 Lines |