remove extra constructor
svn path=/trunk/KDE/kdelibs/; revision=1081212
This commit is contained in:
parent
0c442d4834
commit
3618f03425
@ -53,7 +53,6 @@ public:
|
|||||||
delete pixmap;
|
delete pixmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
void init();
|
|
||||||
void syncBorders();
|
void syncBorders();
|
||||||
QFont widgetFont() const;
|
QFont widgetFont() const;
|
||||||
|
|
||||||
@ -69,16 +68,6 @@ public:
|
|||||||
bool customFont;
|
bool customFont;
|
||||||
};
|
};
|
||||||
|
|
||||||
void FramePrivate::init()
|
|
||||||
{
|
|
||||||
svg = new Plasma::FrameSvg(q);
|
|
||||||
svg->setImagePath("widgets/frame");
|
|
||||||
svg->setElementPrefix("plain");
|
|
||||||
syncBorders();
|
|
||||||
|
|
||||||
QObject::connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), q, SLOT(syncBorders()));
|
|
||||||
}
|
|
||||||
|
|
||||||
QFont FramePrivate::widgetFont() const
|
QFont FramePrivate::widgetFont() const
|
||||||
{
|
{
|
||||||
if (customFont) {
|
if (customFont) {
|
||||||
@ -107,14 +96,13 @@ Frame::Frame(QGraphicsWidget *parent)
|
|||||||
: QGraphicsWidget(parent),
|
: QGraphicsWidget(parent),
|
||||||
d(new FramePrivate(this))
|
d(new FramePrivate(this))
|
||||||
{
|
{
|
||||||
d->init();
|
d->svg = new Plasma::FrameSvg(this);
|
||||||
}
|
d->svg->setImagePath("widgets/frame");
|
||||||
|
d->svg->setElementPrefix("plain");
|
||||||
|
d->syncBorders();
|
||||||
|
|
||||||
|
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(syncBorders()));
|
||||||
|
|
||||||
Frame::Frame(QGraphicsItem *parent)
|
|
||||||
: QGraphicsWidget(parent),
|
|
||||||
d(new FramePrivate(this))
|
|
||||||
{
|
|
||||||
d->init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Frame::~Frame()
|
Frame::~Frame()
|
||||||
|
@ -62,11 +62,6 @@ public:
|
|||||||
* @arg parent the parent of this widget
|
* @arg parent the parent of this widget
|
||||||
*/
|
*/
|
||||||
explicit Frame(QGraphicsWidget *parent = 0);
|
explicit Frame(QGraphicsWidget *parent = 0);
|
||||||
|
|
||||||
/**
|
|
||||||
* @since 4.5
|
|
||||||
*/
|
|
||||||
explicit Frame(QGraphicsItem *parent = 0);
|
|
||||||
~Frame();
|
~Frame();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user