# HG changeset patch # User Matti Hamalainen # Date 1510830319 -7200 # Node ID 2438ea2611f920cce17616737f102c2771347797 # Parent 46b6fb3a33a4806c85202ef6fafdc1ae4fd1dfc4 Cosmetics. diff -r 46b6fb3a33a4 -r 2438ea2611f9 src/main.cpp --- 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 @@ "" )); -// slSetCommonStyleSheet(this); setModal(true); setAttribute(Qt::WA_DeleteOnClose); show(); diff -r 46b6fb3a33a4 -r 2438ea2611f9 src/main.h --- 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: