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/cachedtable/tableeditor.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'examples/sql/cachedtable/tableeditor.cpp') diff --git a/examples/sql/cachedtable/tableeditor.cpp b/examples/sql/cachedtable/tableeditor.cpp index 97b3fa0d96a..b92e2564383 100644 --- a/examples/sql/cachedtable/tableeditor.cpp +++ b/examples/sql/cachedtable/tableeditor.cpp @@ -1,11 +1,16 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -#include -#include - #include "tableeditor.h" +#include +#include +#include +#include +#include +#include +#include + //! [0] TableEditor::TableEditor(const QString &tableName, QWidget *parent) : QWidget(parent) -- cgit v1.2.3