Changeset 4735

Show
Ignore:
Timestamp:
11/06/06 00:14:46 (2 years ago)
Author:
erijo
Message:

Use the configured datetime format in noticies as well.

Location:
trunk/qt-gui/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/ewidgets.cpp

    r4716 r4735  
    949949} 
    950950 
    951 void CMessageViewWidget::addNotice(QString dateTime, QString messageText) 
     951void CMessageViewWidget::addNotice(QDateTime dt, QString messageText) 
    952952{ 
    953953  QString color = "green"; 
    954954  QString s = ""; 
    955    
     955  const QString dateTime = dt.toString( m_nDateFormat ); 
     956 
    956957  /* Remove trailing line breaks. */ 
    957958  for (unsigned int i = messageText.length() - 1; i >= 0; i--) 
     
    962963      break; 
    963964  } 
    964       
    965    
     965 
     966 
    966967  switch (m_nMsgStyle) 
    967968  { 
     
    994995      break;     
    995996  } 
    996    
     997 
    997998  append(s); 
    998999  if (m_bAppendLineBreak) 
  • trunk/qt-gui/src/ewidgets.h

    r4702 r4735  
    209209    bool isDirect, bool isMultiRec, bool isUrgent, bool isEncrypted,  
    210210    QString contactName, QString messageText); 
    211   void addNotice(QString dateTime, QString messageText); 
     211  void addNotice(QDateTime dateTime, QString messageText); 
    212212 
    213213  unsigned short m_nMsgStyle; 
  • trunk/qt-gui/src/usereventdlg.cpp

    r4699 r4735  
    17981798    QString strMsg = QString("%1 has joined the conversation.") 
    17991799      .arg(szId); 
    1800     mleHistory->addNotice(QTime::currentTime().toString(), strMsg); 
     1800    mleHistory->addNotice(QDateTime::currentDateTime(), strMsg); 
    18011801  } 
    18021802 
     
    18251825    QString strMsg = QString("%1 has left the conversation.") 
    18261826      .arg(szId); 
    1827     mleHistory->addNotice(QTime::currentTime().toString(), strMsg); 
     1827    mleHistory->addNotice(QDateTime::currentDateTime(), strMsg); 
    18281828     
    18291829    // Remove the typing notification if active