remove extra constructor

svn path=/trunk/KDE/kdelibs/; revision=1081212
This commit is contained in:
Marco Martin 2010-01-27 22:22:07 +00:00
parent 0c442d4834
commit 3618f03425
2 changed files with 6 additions and 23 deletions

View File

@ -53,7 +53,6 @@ public:
delete pixmap;
}
void init();
void syncBorders();
QFont widgetFont() const;
@ -69,16 +68,6 @@ public:
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
{
if (customFont) {
@ -107,14 +96,13 @@ Frame::Frame(QGraphicsWidget *parent)
: QGraphicsWidget(parent),
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()

View File

@ -62,11 +62,6 @@ public:
* @arg parent the parent of this widget
*/
explicit Frame(QGraphicsWidget *parent = 0);
/**
* @since 4.5
*/
explicit Frame(QGraphicsItem *parent = 0);
~Frame();
/**