fix slider ctors
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842555
This commit is contained in:
parent
6f34814460
commit
dfb38b00f3
@ -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)));
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user