Changeset View
Changeset View
Standalone View
Standalone View
src/kcmoduleqml.cpp
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 138 | "Kirigami.ApplicationItem{" | |||
---|---|---|---|---|---|
139 | //purely cosmetic space, those magic values are to align perfectly within Systemsettings | 139 | //purely cosmetic space, those magic values are to align perfectly within Systemsettings | ||
140 | "header: Item {height: Math.round(Kirigami.Units.gridUnit*0.25)}" | 140 | "header: Item {height: Math.round(Kirigami.Units.gridUnit*0.25)}" | ||
141 | "implicitWidth:pageStack.implicitWidth;" | 141 | "implicitWidth:pageStack.implicitWidth;" | ||
142 | "implicitHeight:pageStack.implicitHeight+header.height;" | 142 | "implicitHeight:pageStack.implicitHeight+header.height;" | ||
143 | // allow only one column by default | 143 | // allow only one column by default | ||
144 | "pageStack.defaultColumnWidth:width;" | 144 | "pageStack.defaultColumnWidth:width;" | ||
145 | "pageStack.separatorVisible:false;" | 145 | "pageStack.separatorVisible:false;" | ||
146 | "pageStack.globalToolBar.style: pageStack.wideScreen ? Kirigami.ApplicationHeaderStyle.Titles : Kirigami.ApplicationHeaderStyle.Breadcrumb;" | 146 | "pageStack.globalToolBar.style: pageStack.wideScreen ? Kirigami.ApplicationHeaderStyle.Titles : Kirigami.ApplicationHeaderStyle.Breadcrumb;" | ||
147 | "pageStack.globalToolBar.showNavigationButtons:false;" | 147 | "pageStack.globalToolBar.showNavigationButtons:true;" | ||
148 | "pageStack.globalToolBar.separatorVisible:false;" | 148 | "pageStack.globalToolBar.separatorVisible:false;" | ||
149 | "activeFocusOnTab:true;" | 149 | "activeFocusOnTab:true;" | ||
150 | "Keys.onReturnPressed:{event.accepted=true}" | 150 | "Keys.onReturnPressed:{event.accepted=true}" | ||
151 | "Keys.onEnterPressed:{event.accepted=true}" | 151 | "Keys.onEnterPressed:{event.accepted=true}" | ||
152 | "}"), QUrl()); | 152 | "}"), QUrl()); | ||
153 | 153 | | |||
154 | d->rootPlaceHolder = qobject_cast<QQuickItem *>(component->create()); | 154 | d->rootPlaceHolder = qobject_cast<QQuickItem *>(component->create()); | ||
155 | d->quickWidget->setContent(QUrl(), component, d->rootPlaceHolder); | 155 | d->quickWidget->setContent(QUrl(), component, d->rootPlaceHolder); | ||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |