------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=123615
michael.larouche kdemail net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From michael.larouche kdemail net 2006-03-15 22:21
-------
SVN commit 518985 by mlarouche:
BUG: 123615
Only display time for %time% keyword, display seconds too.
For %timeOpened%, it still the same behavior, display the date and time, now
the seconds too.
M +4 -3 chatmessagepart.cpp
--- branches/kopete/0.12/kopete/kopete/chatwindow/chatmessagepart.cpp
#518984:518985
@ -847,8 +847,8 @
// Replace sender (contact nick)
resultHTML = resultHTML.replace( QString::fromUtf8("%sender%"), nick );
- // Replace time
- resultHTML = resultHTML.replace( QString::fromUtf8("%time%"),
KGlobal::locale()->formatDateTime(message.timestamp()) );
+ // Replace time, by default display only time and display seconds(that
was true means).
+ resultHTML = resultHTML.replace( QString::fromUtf8("%time%"),
KGlobal::locale()->formatTime(message.timestamp().time(), true) );
// Replace %screenName% (contact ID)
resultHTML = resultHTML.replace(
QString::fromUtf8("%senderScreenName%"), contactId );
// Replace service name (protocol name)
@ -981,7 +981,8 @
resultHTML = resultHTML.replace(
QString::fromUtf8("%sourceName%"), formatName(sourceName) );
// Replace %destinationName%
resultHTML = resultHTML.replace(
QString::fromUtf8("%destinationName%"), formatName(destinationName) );
- resultHTML = resultHTML.replace(
QString::fromUtf8("%timeOpened%"), KGlobal::locale()->formatDateTime(
QDateTime::currentDateTime() ) );
+ // For %timeOpened%, display the date and time (also the
seconds).
+ resultHTML = resultHTML.replace(
QString::fromUtf8("%timeOpened%"), KGlobal::locale()->formatDateTime(
QDateTime::currentDateTime(), true, true ) );
// Look for %timeOpened{X}%
QRegExp timeRegExp("%timeOpened\\{([^}]*)\\}%");
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel