Changeset 4735
- Timestamp:
- 11/06/06 00:14:46 (2 years ago)
- Location:
- trunk/qt-gui/src
- Files:
-
- 3 modified
-
ewidgets.cpp (modified) (3 diffs)
-
ewidgets.h (modified) (1 diff)
-
usereventdlg.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/ewidgets.cpp
r4716 r4735 949 949 } 950 950 951 void CMessageViewWidget::addNotice(Q String dateTime, QString messageText)951 void CMessageViewWidget::addNotice(QDateTime dt, QString messageText) 952 952 { 953 953 QString color = "green"; 954 954 QString s = ""; 955 955 const QString dateTime = dt.toString( m_nDateFormat ); 956 956 957 /* Remove trailing line breaks. */ 957 958 for (unsigned int i = messageText.length() - 1; i >= 0; i--) … … 962 963 break; 963 964 } 964 965 965 966 966 967 switch (m_nMsgStyle) 967 968 { … … 994 995 break; 995 996 } 996 997 997 998 append(s); 998 999 if (m_bAppendLineBreak) -
trunk/qt-gui/src/ewidgets.h
r4702 r4735 209 209 bool isDirect, bool isMultiRec, bool isUrgent, bool isEncrypted, 210 210 QString contactName, QString messageText); 211 void addNotice(Q StringdateTime, QString messageText);211 void addNotice(QDateTime dateTime, QString messageText); 212 212 213 213 unsigned short m_nMsgStyle; -
trunk/qt-gui/src/usereventdlg.cpp
r4699 r4735 1798 1798 QString strMsg = QString("%1 has joined the conversation.") 1799 1799 .arg(szId); 1800 mleHistory->addNotice(Q Time::currentTime().toString(), strMsg);1800 mleHistory->addNotice(QDateTime::currentDateTime(), strMsg); 1801 1801 } 1802 1802 … … 1825 1825 QString strMsg = QString("%1 has left the conversation.") 1826 1826 .arg(szId); 1827 mleHistory->addNotice(Q Time::currentTime().toString(), strMsg);1827 mleHistory->addNotice(QDateTime::currentDateTime(), strMsg); 1828 1828 1829 1829 // Remove the typing notification if active
