mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
lockscreen: Fix clock not adhering to time format settings
This commit is contained in:
parent
0235868fa1
commit
c55500fba0
1 changed files with 3 additions and 1 deletions
|
|
@ -10,12 +10,14 @@ import QtGraphicalEffects 1.12
|
|||
|
||||
import org.kde.plasma.core 2.0
|
||||
|
||||
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
|
||||
|
||||
ColumnLayout {
|
||||
id: root
|
||||
property int layoutAlignment
|
||||
|
||||
readonly property bool softwareRendering: GraphicsInfo.api === GraphicsInfo.Software
|
||||
readonly property bool is24HourTime: Qt.locale().timeFormat(Locale.ShortFormat).toLowerCase().indexOf("ap") === -1
|
||||
readonly property bool is24HourTime: MobileShell.ShellUtil.isSystem24HourFormat
|
||||
|
||||
Layout.alignment: layoutAlignment
|
||||
spacing: Units.gridUnit
|
||||
|
|
|
|||
Loading…
Reference in a new issue