summaryrefslogtreecommitdiffstats
path: root/examples/sql/querymodel/customsqlmodel.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-01-13 00:00:41 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-01-14 09:32:04 +0100
commit8bfebaa22f66d2cc32d6147611bcbaea3a85188c (patch)
treea16e191d3449dff288badb64b45cb517658bc2a4 /examples/sql/querymodel/customsqlmodel.cpp
parent27dd17890060313d684b72c871be9da7eb2b74fe (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/querymodel/customsqlmodel.cpp')
-rw-r--r--examples/sql/querymodel/customsqlmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sql/querymodel/customsqlmodel.cpp b/examples/sql/querymodel/customsqlmodel.cpp
index 90639112182..e87be12f09b 100644
--- a/examples/sql/querymodel/customsqlmodel.cpp
+++ b/examples/sql/querymodel/customsqlmodel.cpp
@@ -1,10 +1,10 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-#include <QtWidgets>
-
#include "customsqlmodel.h"
+#include <QColor>
+
CustomSqlModel::CustomSqlModel(QObject *parent)
: QSqlQueryModel(parent)
{