Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/Tooltip.qml
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 68 | RowLayout { | |||
---|---|---|---|---|---|
87 | ColumnLayout { | 87 | ColumnLayout { | ||
88 | 88 | | |||
89 | PlasmaExtras.Heading { | 89 | PlasmaExtras.Heading { | ||
90 | id: tooltipMaintext | 90 | id: tooltipMaintext | ||
91 | level: 3 | 91 | level: 3 | ||
92 | Layout.minimumWidth: Math.min(implicitWidth, preferredTextWidth) | 92 | Layout.minimumWidth: Math.min(implicitWidth, preferredTextWidth) | ||
93 | Layout.maximumWidth: preferredTextWidth | 93 | Layout.maximumWidth: preferredTextWidth | ||
94 | elide: Text.ElideRight | 94 | elide: Text.ElideRight | ||
95 | text: Qt.formatDate(tzDate,"dddd") | 95 | text: uiLocale.standaloneDayName(tzDate.getDay()) | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | PlasmaComponents.Label { | 98 | PlasmaComponents.Label { | ||
99 | id: tooltipSubtext | 99 | id: tooltipSubtext | ||
100 | Layout.minimumWidth: Math.min(implicitWidth, preferredTextWidth) | 100 | Layout.minimumWidth: Math.min(implicitWidth, preferredTextWidth) | ||
101 | Layout.maximumWidth: preferredTextWidth | 101 | Layout.maximumWidth: preferredTextWidth | ||
102 | text: Qt.formatDate(tzDate, dateFormatString) | 102 | text: uiLocaleFormatDate(tzDate, dateFormatString) | ||
103 | opacity: 0.6 | 103 | opacity: 0.6 | ||
104 | } | 104 | } | ||
105 | 105 | | |||
106 | GridLayout { | 106 | GridLayout { | ||
107 | Layout.minimumWidth: Math.min(implicitWidth, preferredTextWidth) | 107 | Layout.minimumWidth: Math.min(implicitWidth, preferredTextWidth) | ||
108 | Layout.maximumWidth: preferredTextWidth | 108 | Layout.maximumWidth: preferredTextWidth | ||
109 | Layout.maximumHeight: childrenRect.height | 109 | Layout.maximumHeight: childrenRect.height | ||
110 | columns: 2 | 110 | columns: 2 | ||
Show All 35 Lines |