[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:21:19 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=b4362c8
The following commit has been merged in the master branch:
commit b4362c8c8f692bc691bd70cc084bff156c2b7212
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date: Tue Feb 28 09:13:16 2012 +0100
Handle %dateOpened% keyword and fix %timeOpened%
---
lib/adium-theme-view.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/adium-theme-view.cpp b/lib/adium-theme-view.cpp
index c834c94..7a45882 100644
--- a/lib/adium-theme-view.cpp
+++ b/lib/adium-theme-view.cpp
@@ -371,7 +371,8 @@ QString AdiumThemeView::replaceHeaderKeywords(QString htmlTemplate, const AdiumT
htmlTemplate.replace(QLatin1String("%destinationDisplayName%"), info.destinationDisplayName());
htmlTemplate.replace(QLatin1String("%incomingIconPath%"), (!info.incomingIconPath().isEmpty() ? info.incomingIconPath().toString() : m_defaultAvatar));
htmlTemplate.replace(QLatin1String("%outgoingIconPath%"), (!info.outgoingIconPath().isEmpty() ? info.incomingIconPath().toString() : m_defaultAvatar));
- htmlTemplate.replace(QLatin1String("%timeOpened%"), KGlobal::locale()->formatDateTime(info.timeOpened()));
+ htmlTemplate.replace(QLatin1String("%timeOpened%"), KGlobal::locale()->formatTime(info.timeOpened().time()));
+ htmlTemplate.replace(QLatin1String("%dateOpened%"), KGlobal::locale()->formatDate(info.timeOpened().date(), KLocale::LongDate));
//FIXME time fields - remember to do both, steal the complicated one from Kopete code.
// Look for %timeOpened{X}%
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list