Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
52d5acab
Commit
52d5acab
authored
Nov 24, 2020
by
Tomaz Canabrava
Browse files
Use Qt Locale Format to format the time on the clock
parent
1e8168ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
applets/analog-clock/contents/ui/analogclock.qml
View file @
52d5acab
...
...
@@ -43,7 +43,7 @@ Item {
Plasmoid.preferredRepresentation
:
Plasmoid
.
compactRepresentation
Plasmoid.toolTipMainText
:
Qt
.
formatDate
(
dataSource
.
data
[
"
Local
"
][
"
DateTime
"
],
"
dddd
"
)
Plasmoid.toolTipSubText
:
Qt
.
formatTime
(
dataSource
.
data
[
"
Local
"
][
"
DateTime
"
],
"
hh:mm
"
)
+
"
\n
"
+
Plasmoid.toolTipSubText
:
Qt
.
formatTime
(
dataSource
.
data
[
"
Local
"
][
"
DateTime
"
],
Qt
.
locale
().
timeFormat
(
Locale
.
LongFormat
)
)
+
"
\n
"
+
Qt
.
formatDate
(
dataSource
.
data
[
"
Local
"
][
"
DateTime
"
],
Qt
.
locale
().
dateFormat
(
Locale
.
LongFormat
).
replace
(
/
(
^dddd.
?\s)
|
(
,
?\s
dddd$
)
/
,
""
))
PlasmaCore.DataSource
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment