mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
plasma: replace QDateTime::currentDateTime().date() with QDate::currentDate()
QDate::currentDate() is slightly faster Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e79b5ebca0
commit
2ea72faa64
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ void CalendarApplet::slotCheckDate()
|
|||
|
||||
Plasma::ToolTipContent plasmatooltip;
|
||||
plasmatooltip.setMainText(i18n("Current Date"));
|
||||
const QString calendarstring = KGlobal::locale()->formatDate(QDateTime::currentDateTime().date());
|
||||
const QString calendarstring = KGlobal::locale()->formatDate(QDate::currentDate());
|
||||
QString calendartooltip;
|
||||
if (KSystemTimeZones::local() != KTimeZone::utc()) {
|
||||
calendartooltip.append(i18n("UTC: %1<br/>", KGlobal::locale()->formatDate(QDateTime::currentDateTimeUtc().date())));
|
||||
|
|
Loading…
Add table
Reference in a new issue