From 8bfebaa22f66d2cc32d6147611bcbaea3a85188c Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sat, 13 Jan 2024 00:00:41 +0100 Subject: 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 --- examples/sql/querymodel/customsqlmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/sql/querymodel/customsqlmodel.cpp') 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 - #include "customsqlmodel.h" +#include + CustomSqlModel::CustomSqlModel(QObject *parent) : QSqlQueryModel(parent) { -- cgit v1.2.3