Mercurial > hg > syntilista
changeset 207:2438ea2611f9
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 16 Nov 2017 13:05:19 +0200 |
parents | 46b6fb3a33a4 |
children | e6a2658ae096 |
files | src/main.cpp src/main.h |
diffstat | 2 files changed, 0 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.cpp Thu Nov 16 11:34:42 2017 +0200 +++ b/src/main.cpp Thu Nov 16 13:05:19 2017 +0200 @@ -1557,8 +1557,6 @@ qint64 SLPersonSQLModel::addPerson(const SLPersonInfo &info) { -// beginInsertRows(QModelIndex(), rowCount(), rowCount()); - QSqlQuery np; np.prepare(QStringLiteral("INSERT INTO people (first_name,last_name,extra_info,added,updated) VALUES (?,?,?,?,?)")); np.addBindValue(info.firstName); @@ -1575,7 +1573,6 @@ QVariant idp = np.lastInsertId(); -// endInsertRows(); updateModel(); return idp.isValid() ? idp.toInt() : -2; } @@ -1718,7 +1715,6 @@ "</table>" )); -// slSetCommonStyleSheet(this); setModal(true); setAttribute(Qt::WA_DeleteOnClose); show();
--- a/src/main.h Thu Nov 16 11:34:42 2017 +0200 +++ b/src/main.h Thu Nov 16 13:05:19 2017 +0200 @@ -252,13 +252,10 @@ private slots: void on_button_OK_clicked(); - void on_button_Cancel_clicked(); void on_edit_FirstName_textChanged(const QString &arg1); - void on_edit_LastName_textChanged(const QString &arg1); - void on_textedit_ExtraInfo_textChanged(); private: