From b4fc8cf48b1affc5073727bc9a26c95e0393b436 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 10 Jul 2023 19:38:35 +0300 Subject: [PATCH] kdeui: remove unused KVBox member and update its documentation Signed-off-by: Ivailo Monev --- kdeui/widgets/kvbox.cpp | 5 ++--- kdeui/widgets/kvbox.h | 17 +++++------------ 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/kdeui/widgets/kvbox.cpp b/kdeui/widgets/kvbox.cpp index 967085c3..46018204 100644 --- a/kdeui/widgets/kvbox.cpp +++ b/kdeui/widgets/kvbox.cpp @@ -18,9 +18,8 @@ #include "kvbox.h" -KVBox::KVBox( QWidget* parent ) - : KHBox( true, parent ), - d( 0 ) +KVBox::KVBox(QWidget *parent) + : KHBox(true, parent) { } diff --git a/kdeui/widgets/kvbox.h b/kdeui/widgets/kvbox.h index 3e68c78f..8899fb6b 100644 --- a/kdeui/widgets/kvbox.h +++ b/kdeui/widgets/kvbox.h @@ -29,33 +29,26 @@ * Both margin and spacing are initialized to 0. Use QVBoxLayout * if you need standard layout margins. * - * \image html kvbox.png "KDE Vertical Box containing three buttons" - * * @see KHBox */ class KDEUI_EXPORT KVBox : public KHBox { - Q_OBJECT - - public: + Q_OBJECT +public: /** * Creates a new vbox. * * @param parent The parent widget. */ - explicit KVBox( QWidget* parent = 0 ); + explicit KVBox(QWidget *parent = nullptr); /** * Destructor. */ ~KVBox(); - private: - class Private; - friend class Private; - Private* const d; - +private: Q_DISABLE_COPY(KVBox) }; -#endif +#endif // KVBOX_H