Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/qml/Page.qml
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 88 | NewStuff.Engine { | |||
---|---|---|---|---|---|
90 | onMessage: root.message(message); | 90 | onMessage: root.message(message); | ||
91 | onIdleMessage: root.idleMessage(message); | 91 | onIdleMessage: root.idleMessage(message); | ||
92 | onBusyMessage: root.busyMessage(message); | 92 | onBusyMessage: root.busyMessage(message); | ||
93 | onErrorMessage: root.errorMessage(message); | 93 | onErrorMessage: root.errorMessage(message); | ||
94 | } | 94 | } | ||
95 | NewStuff.QuestionAsker {} | 95 | NewStuff.QuestionAsker {} | ||
96 | 96 | | |||
97 | titleDelegate: QtLayouts.RowLayout { | 97 | titleDelegate: QtLayouts.RowLayout { | ||
98 | QtLayouts.Layout.fillWidth: true | ||||
ngraham: ditto | |||||
98 | Kirigami.Heading { | 99 | Kirigami.Heading { | ||
99 | id: title | 100 | id: title | ||
100 | level: 1 | 101 | level: 1 | ||
101 | 102 | | |||
102 | QtLayouts.Layout.fillWidth: true; | 103 | QtLayouts.Layout.fillWidth: true; | ||
103 | QtLayouts.Layout.preferredWidth: titleTextMetrics.width | 104 | QtLayouts.Layout.preferredWidth: titleTextMetrics.width | ||
104 | QtLayouts.Layout.minimumWidth: titleTextMetrics.width | | |||
105 | opacity: root.isCurrentPage ? 1 : 0.4 | 105 | opacity: root.isCurrentPage ? 1 : 0.4 | ||
106 | maximumLineCount: 1 | 106 | maximumLineCount: 1 | ||
107 | elide: Text.ElideRight | 107 | elide: Text.ElideRight | ||
108 | text: root.title | 108 | text: root.title | ||
109 | TextMetrics { | 109 | TextMetrics { | ||
110 | id: titleTextMetrics | 110 | id: titleTextMetrics | ||
111 | text: root.title | 111 | text: root.title | ||
112 | font: title.font | 112 | font: title.font | ||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |
ditto