From dfb38b00f3cc605f67ca1d226f4a23f53277eac2 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 5 Aug 2008 14:29:51 +0000 Subject: [PATCH] fix slider ctors svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842555 --- widgets/slider.cpp | 16 +--------------- widgets/slider.h | 2 -- 2 files changed, 1 insertion(+), 17 deletions(-) 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();