diff --git a/widgets/slider.cpp b/widgets/slider.cpp index 443461492..6aa9be2b3 100644 --- a/widgets/slider.cpp +++ b/widgets/slider.cpp @@ -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))); diff --git a/widgets/slider.h b/widgets/slider.h index b72039267..077d6d225 100644 --- a/widgets/slider.h +++ b/widgets/slider.h @@ -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();