fix slider ctors

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842555
This commit is contained in:
Aaron J. Seigo 2008-08-05 14:29:51 +00:00
parent 6f34814460
commit dfb38b00f3
2 changed files with 1 additions and 17 deletions

View File

@ -43,25 +43,11 @@ public:
};
Slider::Slider(Qt::Orientation orientation, QGraphicsWidget *parent)
: QGraphicsProxyWidget(parent),
d(0)
{
QSlider* native = new QSlider;
connect(native, SIGNAL(sliderMoved(int)), this, SIGNAL(sliderMoved(int)));
connect(native, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int)));
setWidget(native);
native->setAttribute(Qt::WA_NoSystemBackground);
native->setOrientation(orientation);
}
Slider::Slider(QGraphicsWidget *parent)
: QGraphicsProxyWidget(parent),
d(0)
{
QSlider* native = new QSlider;
QSlider *native = new QSlider;
connect(native, SIGNAL(sliderMoved(int)), this, SIGNAL(sliderMoved(int)));
connect(native, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int)));

View File

@ -45,8 +45,6 @@ class PLASMA_EXPORT Slider : public QGraphicsProxyWidget
Q_PROPERTY(QSlider* nativeWidget READ nativeWidget)
public:
explicit Slider(Qt::Orientation orientation = Qt::Vertical,
QGraphicsWidget *parent = 0);
explicit Slider(QGraphicsWidget *parent = 0);
~Slider();