Changeset View
Changeset View
Standalone View
Standalone View
kcm/package/contents/ui/Screen.qml
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 52 | Kirigami.Heading { | |||
---|---|---|---|---|---|
59 | } | 59 | } | ||
60 | level: 4 | 60 | level: 4 | ||
61 | opacity: 0.6 | 61 | opacity: 0.6 | ||
62 | horizontalAlignment: Text.AlignHCenter | 62 | horizontalAlignment: Text.AlignHCenter | ||
63 | text: i18n("Drag screens to re-arrange them") | 63 | text: i18n("Drag screens to re-arrange them") | ||
64 | visible: kcm.outputModel && kcm.outputModel.rowCount() > 1 | 64 | visible: kcm.outputModel && kcm.outputModel.rowCount() > 1 | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | Row { | 67 | Row { | ||
ngraham: You don't need a Row here anymore because it now only contains one item; instead you can just… | |||||
Yea, I ignore the row for now. We can think about a different position for the button later on. I think it should be in one of the corners like it used to be. romangg: Yea, I ignore the row for now. We can think about a different position for the button later on. | |||||
Why not remove the Row in this revision? You don't have to change the button position from where it is now, just remove the now-pointless Row. ngraham: Why not remove the Row in this revision? You don't have to change the button position from… | |||||
68 | z: 90 | 68 | z: 90 | ||
69 | anchors { | 69 | anchors { | ||
70 | bottom: parent.bottom | 70 | bottom: parent.bottom | ||
71 | horizontalCenter: parent.horizontalCenter | 71 | horizontalCenter: parent.horizontalCenter | ||
72 | margins: units.smallSpacing | 72 | margins: units.smallSpacing | ||
73 | } | 73 | } | ||
74 | spacing: units.smallSpacing | 74 | spacing: units.smallSpacing | ||
75 | Controls.Button { | 75 | Controls.Button { | ||
76 | onClicked: kcm.identifyOutputs() | 76 | onClicked: kcm.identifyOutputs() | ||
77 | text: i18n("Identify") | 77 | text: i18n("Identify") | ||
78 | icon.name: "documentinfo" | 78 | icon.name: "documentinfo" | ||
79 | focusPolicy: Qt.NoFocus | 79 | focusPolicy: Qt.NoFocus | ||
80 | visible: kcm.outputModel && kcm.outputModel.rowCount() > 1 | 80 | visible: kcm.outputModel && kcm.outputModel.rowCount() > 1 | ||
81 | } | 81 | } | ||
82 | Controls.Button { | | |||
83 | enabled: !kcm.screenNormalized | | |||
84 | onClicked: resetTotalSize() | | |||
85 | text: i18n("Center View") | | |||
86 | icon.name: "zoom-original" | | |||
87 | focusPolicy: Qt.NoFocus | | |||
88 | visible: kcm.outputModel && kcm.outputModel.rowCount() > 1 | | |||
89 | } | | |||
90 | } | 82 | } | ||
91 | 83 | | |||
92 | Repeater { | 84 | Repeater { | ||
93 | model: kcm.outputModel | 85 | model: kcm.outputModel | ||
94 | delegate: Output {} | 86 | delegate: Output {} | ||
95 | 87 | | |||
96 | onCountChanged: resetTotalSize() | 88 | onCountChanged: resetTotalSize() | ||
97 | } | 89 | } | ||
98 | } | 90 | } |
You don't need a Row here anymore because it now only contains one item; instead you can just position the Identify button manually.