diff options
| author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-01-12 22:25:23 +0100 |
|---|---|---|
| committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-01-19 17:27:25 +0100 |
| commit | 2690822428deec4f0c08f4d118d69a7c6036369e (patch) | |
| tree | db42e9c2e4b0013a96504521cdf2d679ef28c407 /examples/sql/sqlbrowser/connectionwidget.h | |
| parent | dc4159286b8571a3f3543e457fe1b51b9f5965b7 (diff) | |
Examples/sqlbrowser: improve coding style
Fix the coding style to match the current Qt style.
Pick-to: 6.7
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>
Diffstat (limited to 'examples/sql/sqlbrowser/connectionwidget.h')
| -rw-r--r-- | examples/sql/sqlbrowser/connectionwidget.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/sql/sqlbrowser/connectionwidget.h b/examples/sql/sqlbrowser/connectionwidget.h index a5b1edc7e30..a00296f3c5d 100644 --- a/examples/sql/sqlbrowser/connectionwidget.h +++ b/examples/sql/sqlbrowser/connectionwidget.h @@ -9,14 +9,13 @@ QT_FORWARD_DECLARE_CLASS(QTreeWidget) QT_FORWARD_DECLARE_CLASS(QTreeWidgetItem) QT_FORWARD_DECLARE_CLASS(QSqlDatabase) -QT_FORWARD_DECLARE_CLASS(QMenu) -class ConnectionWidget: public QWidget +class ConnectionWidget : public QWidget { Q_OBJECT public: ConnectionWidget(QWidget *parent = nullptr); - virtual ~ConnectionWidget(); + ~ConnectionWidget(); QSqlDatabase currentDatabase() const; @@ -27,8 +26,8 @@ signals: public slots: void refresh(); void showMetaData(); - void on_tree_itemActivated(QTreeWidgetItem *item, int column); - void on_tree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous); + void onItemActivated(QTreeWidgetItem *item); + void onCurrentItemChanged(QTreeWidgetItem *current); private: void setActive(QTreeWidgetItem *); |
