Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/ConfigEntries.qml
Show First 20 Lines • Show All 249 Lines • ▼ Show 20 Line(s) | 249 | KQC.KeySequenceItem { | |||
---|---|---|---|---|---|
250 | id: keySequenceItem | 250 | id: keySequenceItem | ||
251 | Layout.minimumWidth: itemsList.keySequenceColumnWidth | 251 | Layout.minimumWidth: itemsList.keySequenceColumnWidth | ||
252 | Layout.preferredWidth: itemsList.keySequenceColumnWidth | 252 | Layout.preferredWidth: itemsList.keySequenceColumnWidth | ||
253 | Component.onCompleted: itemsList.keySequenceColumnWidth = Math.max(implicitWidth, itemsList.keySequenceColumnWidth) | 253 | Component.onCompleted: itemsList.keySequenceColumnWidth = Math.max(implicitWidth, itemsList.keySequenceColumnWidth) | ||
254 | 254 | | |||
255 | visible: isPlasmoid | 255 | visible: isPlasmoid | ||
256 | enabled: visibilityComboBox.myCurrentValue !== "disabled" | 256 | enabled: visibilityComboBox.myCurrentValue !== "disabled" | ||
257 | keySequence: model.applet ? model.applet.globalShortcut : "" | 257 | keySequence: model.applet ? model.applet.globalShortcut : "" | ||
258 | onKeySequenceChanged: { | 258 | function onKeySequenceChanged() { | ||
259 | if (model.applet && keySequence !== model.applet.globalShortcut) { | 259 | if (model.applet && keySequence !== model.applet.globalShortcut) { | ||
260 | model.applet.globalShortcut = keySequence | 260 | model.applet.globalShortcut = keySequence | ||
261 | 261 | | |||
262 | itemsList.keySequenceColumnWidth = Math.max(implicitWidth, itemsList.keySequenceColumnWidth) | 262 | itemsList.keySequenceColumnWidth = Math.max(implicitWidth, itemsList.keySequenceColumnWidth) | ||
263 | } | 263 | } | ||
264 | } | 264 | } | ||
265 | } | 265 | } | ||
266 | // Placeholder for when KeySequenceItem is not visible | 266 | // Placeholder for when KeySequenceItem is not visible | ||
Show All 10 Lines |