qt6-bb10/examples/sql/sqlbrowser
Marc Mutz 9be434b3b1 sqlbrowser example: use unique_ptr to hold m_ui
The old code used manual memory mangement (raw new/delete) to
(de)allocate the Ui struct. This is so 80s.

Use an owning smart pointer to manage the memory. Ordinarily, this
would have been QScopedPointer, but seeing as that doesn't have a
create() method to hide the raw new, use std::unique_ptr and
std::make_unique() instead.

Amends 2690822428.

Change-Id: Icabb9154eb38630855e14094b958af0214516f6b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 0da2c2c4ef2219967db87021eece2a60b6e207af)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 88600c30964bc1d11ed09e3dddd4cbe4477f02d3)
2025-01-02 19:19:54 +00:00
..
CMakeLists.txt CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
browser.cpp sqlbrowser example: use unique_ptr to hold m_ui 2025-01-02 19:19:54 +00:00
browser.h sqlbrowser example: use unique_ptr to hold m_ui 2025-01-02 19:19:54 +00:00
browserwidget.ui add strategy support to sqlbrowser example 2012-03-06 06:34:33 +01:00
connectionwidget.cpp Examples/sqlbrowser: improve coding style 2024-01-19 17:27:25 +01:00
connectionwidget.h Examples/sqlbrowser: improve coding style 2024-01-19 17:27:25 +01:00
main.cpp Examples/sqlbrowser: improve coding style 2024-01-19 17:27:25 +01:00
qsqlconnectiondialog.cpp sqlbrowser example: use unique_ptr to hold m_ui 2025-01-02 19:19:54 +00:00
qsqlconnectiondialog.h sqlbrowser example: use unique_ptr to hold m_ui 2025-01-02 19:19:54 +00:00
qsqlconnectiondialog.ui sqlbrowser example: use idiomatic Qt [3/3]: use form-layout 2025-01-02 19:19:47 +00:00
sqlbrowser.pro qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00