Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/CalendarView.qml
Show First 20 Lines • Show All 425 Lines • ▼ Show 20 Line(s) | 421 | model: { | |||
---|---|---|---|---|---|
426 | 426 | | |||
427 | return timezones; | 427 | return timezones; | ||
428 | } | 428 | } | ||
429 | 429 | | |||
430 | delegate: PlasmaComponents.ListItem { | 430 | delegate: PlasmaComponents.ListItem { | ||
431 | id: listItem | 431 | id: listItem | ||
432 | readonly property bool isCurrentTimeZone: modelData === plasmoid.configuration.lastSelectedTimezone | 432 | readonly property bool isCurrentTimeZone: modelData === plasmoid.configuration.lastSelectedTimezone | ||
433 | 433 | | |||
434 | MouseArea { | ||||
435 | anchors.fill: parent | ||||
436 | cursorShape: Qt.PointingHandCursor | ||||
437 | onClicked: plasmoid.configuration.lastSelectedTimezone = modelData | ||||
438 | } | ||||
439 | | ||||
434 | ColumnLayout { | 440 | ColumnLayout { | ||
435 | 441 | | |||
436 | width: clocksList.width | 442 | width: clocksList.width | ||
437 | spacing: 0 | 443 | spacing: 0 | ||
438 | 444 | | |||
439 | PlasmaExtras.Heading { | 445 | PlasmaExtras.Heading { | ||
440 | Layout.fillWidth: true | 446 | Layout.fillWidth: true | ||
441 | level: 3 | 447 | level: 3 | ||
Show All 35 Lines |