change default timestamp format to hh:mm
authorsheepluva
Sat, 29 Oct 2011 16:54:46 +0200
changeset 6231 810b9ced2b67
parent 6229 4c834af76c3b
child 6233 b81199041d8f
change default timestamp format to hh:mm
QTfrontend/res/css/chat.css
QTfrontend/ui/widget/chatwidget.cpp
--- a/QTfrontend/res/css/chat.css	Sat Oct 29 15:31:45 2011 +0200
+++ b/QTfrontend/res/css/chat.css	Sat Oct 29 16:54:46 2011 +0200
@@ -62,8 +62,8 @@
     /* display: none; */
 }
 
-.timestamp:hours { display: none; }
-/* .timestamp:seconds { display: none; } */
+/* .timestamp:hours { display: none; } */
+.timestamp:seconds { display: none; }
 
 /* you can also set timestamp style for different msg types */
 .msg_FriendChat .timestamp { color: #ffffff; }
--- a/QTfrontend/ui/widget/chatwidget.cpp	Sat Oct 29 15:31:45 2011 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Sat Oct 29 16:54:46 2011 +0200
@@ -191,9 +191,9 @@
     {
         s_isTimeStamped = true;
         s_tsFormat =
-            ((victims.contains("timestamp:hours"))?"":"hh") +
-            QString(":mm:") +
-            ((victims.contains("timestamp:seconds"))?"":"ss");
+            ((victims.contains("timestamp:hours"))?"":"hh:") +
+            QString("mm") +
+            ((victims.contains("timestamp:seconds"))?"":":ss");
     }
 
     victims.removeAll("timestamp:hours");