Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmacomponents3/ComboBox.qml
Show All 33 Lines | 28 | T.ComboBox { | |||
---|---|---|---|---|---|
34 | baselineOffset: contentItem.y + contentItem.baselineOffset | 34 | baselineOffset: contentItem.y + contentItem.baselineOffset | ||
35 | 35 | | |||
36 | hoverEnabled: true | 36 | hoverEnabled: true | ||
37 | topPadding: surfaceNormal.margins.top | 37 | topPadding: surfaceNormal.margins.top | ||
38 | leftPadding: surfaceNormal.margins.left | 38 | leftPadding: surfaceNormal.margins.left | ||
39 | rightPadding: surfaceNormal.margins.right | 39 | rightPadding: surfaceNormal.margins.right | ||
40 | bottomPadding: surfaceNormal.margins.bottom | 40 | bottomPadding: surfaceNormal.margins.bottom | ||
41 | 41 | | |||
42 | // Work around Qt bug where NativeRendering breaks for non-integer scale factors | ||||
43 | // https://bugreports.qt.io/browse/QTBUG-67007 | ||||
44 | renderType: Screen.devicePixelRatio % 1 !== 0 ? Text.QtRendering : Text.NativeRendering | ||||
45 | | ||||
42 | delegate: ItemDelegate { | 46 | delegate: ItemDelegate { | ||
43 | width: control.popup.width | 47 | width: control.popup.width | ||
44 | text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData | 48 | text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData | ||
45 | highlighted: control.highlightedIndex == index | 49 | highlighted: control.highlightedIndex == index | ||
46 | property bool separatorVisible: false | 50 | property bool separatorVisible: false | ||
47 | } | 51 | } | ||
48 | 52 | | |||
49 | indicator: PlasmaCore.SvgItem { | 53 | indicator: PlasmaCore.SvgItem { | ||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |