diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-01-13 00:00:41 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-01-14 09:32:04 +0100 |
commit | 8bfebaa22f66d2cc32d6147611bcbaea3a85188c (patch) | |
tree | a16e191d3449dff288badb64b45cb517658bc2a4 /examples/sql/books/initdb.h | |
parent | 27dd17890060313d684b72c871be9da7eb2b74fe (diff) |
SQL examples: code cleanup
Misc code cleanup for the sql examples:
- don't include global Qt headers but only needed ones
- use proper tr() where possible
- pass parameters by const ref
- style fixes
Change-Id: I4fd4293948918b9d7b373b6d1e8eeecf6f25a622
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Diffstat (limited to 'examples/sql/books/initdb.h')
-rw-r--r-- | examples/sql/books/initdb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/sql/books/initdb.h b/examples/sql/books/initdb.h index 38fc9aeb71..9de8845a2f 100644 --- a/examples/sql/books/initdb.h +++ b/examples/sql/books/initdb.h @@ -4,7 +4,9 @@ #ifndef INITDB_H #define INITDB_H -#include <QtSql> +#include <QDate> +#include <QSqlError> +#include <QSqlQuery> void addBook(QSqlQuery &q, const QString &title, int year, const QVariant &authorId, const QVariant &genreId, int rating) |