change date format to yyyy-MM-dd #82
This commit is contained in:
@@ -66,7 +66,7 @@ void Chat::renderChatBox(Ui::MainWindow *ui, QListView *view, QLabel *label)
|
||||
|
||||
Items->setData(OUTGOING, Qt::UserRole + 1);
|
||||
chat->appendRow(Items);
|
||||
ui->listChat->setModel(chat);
|
||||
ui->listChat->setModel(chat);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -27,21 +27,7 @@ class Chat // Chat Controller
|
||||
std::map<QString, QString> requestZaddrMap;
|
||||
public:
|
||||
Chat();
|
||||
//QString zaddr();
|
||||
void renderChatBox(Ui::MainWindow* ui, QListView *view, QLabel *label); // action
|
||||
// void renderContactRequest();
|
||||
/*void triggerRequest();
|
||||
void showMessages();
|
||||
void clear();
|
||||
//void renderContactRequest(Ui::MainWindow* ui, QListView *view);
|
||||
void addMessage(ChatItem item);
|
||||
void addMessage(QString timestamp, ChatItem item);
|
||||
void addCid(QString tx, QString cid);
|
||||
void addrequestZaddr(QString tx, QString requestZaddr);
|
||||
QString getCidByTx(QString tx);
|
||||
QString getrequestZaddrByTx(QString tx);
|
||||
void killCidCache();
|
||||
void killrequestZaddrCache();*/
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ QString ChatItem::toChatLine()
|
||||
|
||||
|
||||
qDebug()<<_notarize;
|
||||
QString line = QString("<small>") + myDateTime.toString("dd.MM.yyyy hh:mm");
|
||||
QString line = QString("<small>") + myDateTime.toString("yyyy-MM-dd hh:mm");
|
||||
line += QString(lock) + QString("</small>");
|
||||
line += QString("<p>") + _memo.toHtmlEscaped() + QString("</p>");
|
||||
return line;
|
||||
|
||||
Reference in New Issue
Block a user