# HG changeset patch # User Matti Hamalainen # Date 1509539072 -7200 # Node ID ee5479079238577e2cd72126b20231d298c6247b # Parent a2f11e6665d6728c257bc3f0adac30d60491d9e8 Display the 'added to database' timestamp in the edit person dialog. diff -r a2f11e6665d6 -r ee5479079238 src/editperson.ui --- a/src/editperson.ui Mon Oct 02 13:39:58 2017 +0300 +++ b/src/editperson.ui Wed Nov 01 14:24:32 2017 +0200 @@ -37,12 +37,12 @@ + + + - - - @@ -53,6 +53,20 @@ + + + + Lisätty tietokantaan: + + + + + + + - + + + diff -r a2f11e6665d6 -r ee5479079238 src/main.cpp --- a/src/main.cpp Mon Oct 02 13:39:58 2017 +0300 +++ b/src/main.cpp Wed Nov 01 14:24:32 2017 +0200 @@ -1362,6 +1362,7 @@ ui->edit_FirstName->setText(pinfo.firstName); ui->edit_LastName->setText(pinfo.lastName); ui->textedit_ExtraInfo->document()->setPlainText(pinfo.extraInfo); + ui->label_AddedValue->setText(slDateTimeToStr(pinfo.added)); QSqlQuery query; query.prepare("SELECT id,value,added FROM transactions WHERE person=? ORDER BY added DESC");