kdeui: remove unused and private KHBox member

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-09 04:55:12 +02:00
parent 593dd8b8d3
commit eb8ff2c536
2 changed files with 4 additions and 20 deletions

View file

@ -24,8 +24,7 @@
#include <QtGui/QVBoxLayout>
KHBox::KHBox(QWidget* parent)
: QFrame(parent),
d( 0 )
: QFrame(parent)
{
QHBoxLayout* layout = new QHBoxLayout(this);
layout->setSpacing(0);
@ -36,8 +35,7 @@ KHBox::KHBox(QWidget* parent)
KHBox::KHBox(bool /*vertical*/, QWidget* parent)
: QFrame(parent),
d( 0 )
: QFrame(parent)
{
QVBoxLayout* layout = new QVBoxLayout(this);
layout->setSpacing(0);
@ -46,10 +44,6 @@ KHBox::KHBox(bool /*vertical*/, QWidget* parent)
setLayout(layout);
}
KHBox::~KHBox()
{
}
void KHBox::childEvent(QChildEvent* event)
{
switch (event->type()) {

View file

@ -21,8 +21,7 @@
#include <kdeui_export.h>
#include <QtGui/QFrame>
#include <QFrame>
#include <QChildEvent>
/**
@ -45,12 +44,7 @@ public:
/**
* Creates a new hbox.
*/
explicit KHBox( QWidget* parent = 0 );
/**
* Destructor.
*/
~KHBox();
explicit KHBox(QWidget* parent = 0);
/**
* Sets the @p margin of the hbox.
@ -88,10 +82,6 @@ protected:
virtual void childEvent(QChildEvent* ev);
private:
class Private;
friend class Private;
Private* const d;
Q_DISABLE_COPY(KHBox)
};