mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: theme Plasma::Slider widget
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6635f1d35d
commit
0ca4db3298
2 changed files with 9 additions and 3 deletions
|
@ -28,14 +28,16 @@
|
|||
#include "framesvg.h"
|
||||
|
||||
#include "private/style_p.h"
|
||||
#include "private/themedwidgetinterface_p.h"
|
||||
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
class SliderPrivate
|
||||
class SliderPrivate : public ThemedWidgetInterface<Slider>
|
||||
{
|
||||
public:
|
||||
SliderPrivate()
|
||||
SliderPrivate(Slider *slider)
|
||||
: ThemedWidgetInterface<Slider>(slider)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -44,7 +46,7 @@ public:
|
|||
|
||||
Slider::Slider(QGraphicsWidget *parent)
|
||||
: QGraphicsProxyWidget(parent),
|
||||
d(new SliderPrivate)
|
||||
d(new SliderPrivate(this))
|
||||
{
|
||||
QSlider *native = new QSlider();
|
||||
|
||||
|
@ -57,6 +59,8 @@ Slider::Slider(QGraphicsWidget *parent)
|
|||
|
||||
d->style = Plasma::Style::sharedStyle();
|
||||
native->setStyle(d->style.data());
|
||||
|
||||
d->initTheming();
|
||||
}
|
||||
|
||||
Slider::~Slider()
|
||||
|
|
|
@ -122,6 +122,8 @@ Q_SIGNALS:
|
|||
void valueChanged(int value);
|
||||
|
||||
private:
|
||||
Q_PRIVATE_SLOT(d, void setPalette())
|
||||
|
||||
SliderPrivate * const d;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue