Fix the coding style to match the current Qt style. Fixes: QTBUG-68661 Fixes: QTBUG-120909 Change-Id: I314ca9da8a03727e3e0336a23fce1ce9d065d3a4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit 2690822428deec4f0c08f4d118d69a7c6036369e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
40 lines
768 B
C++
40 lines
768 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#ifndef QSQLCONNECTIONDIALOG_H
|
|
#define QSQLCONNECTIONDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui
|
|
{
|
|
class QSqlConnectionDialogUi;
|
|
}
|
|
QT_END_NAMESPACE
|
|
|
|
class QSqlConnectionDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QSqlConnectionDialog(QWidget *parent = nullptr);
|
|
~QSqlConnectionDialog();
|
|
|
|
QString driverName() const;
|
|
QString databaseName() const;
|
|
QString userName() const;
|
|
QString password() const;
|
|
QString hostName() const;
|
|
int port() const;
|
|
bool useInMemoryDatabase() const;
|
|
|
|
private slots:
|
|
void onOkButton();
|
|
void onDbCheckBox();
|
|
|
|
private:
|
|
Ui::QSqlConnectionDialogUi *m_ui;
|
|
};
|
|
|
|
#endif
|