connect to repaintneeded, tat will be emitted when the proper margins have been recalculated
svn path=/trunk/KDE/kdelibs/; revision=1142402
This commit is contained in:
parent
2d4ed4db67
commit
506a22400c
|
@ -126,7 +126,7 @@ ComboBox::ComboBox(QGraphicsWidget *parent)
|
||||||
|
|
||||||
new FocusIndicator(this, "widgets/button");
|
new FocusIndicator(this, "widgets/button");
|
||||||
setNativeWidget(new KComboBox);
|
setNativeWidget(new KComboBox);
|
||||||
connect(Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(syncBorders()));
|
connect(d->background, SIGNAL(repaintNeeded()), SLOT(syncBorders()));
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox::~ComboBox()
|
ComboBox::~ComboBox()
|
||||||
|
|
|
@ -101,8 +101,7 @@ Frame::Frame(QGraphicsWidget *parent)
|
||||||
d->svg->setElementPrefix("plain");
|
d->svg->setElementPrefix("plain");
|
||||||
d->syncBorders();
|
d->syncBorders();
|
||||||
|
|
||||||
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(syncBorders()));
|
connect(d->svg, SIGNAL(repaintNeeded()), SLOT(syncBorders()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Frame::~Frame()
|
Frame::~Frame()
|
||||||
|
|
|
@ -186,7 +186,8 @@ PushButton::PushButton(QGraphicsWidget *parent)
|
||||||
|
|
||||||
d->syncBorders();
|
d->syncBorders();
|
||||||
setAcceptHoverEvents(true);
|
setAcceptHoverEvents(true);
|
||||||
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(syncBorders()));
|
|
||||||
|
connect(d->background, SIGNAL(repaintNeeded()), SLOT(syncBorders()));
|
||||||
}
|
}
|
||||||
|
|
||||||
PushButton::~PushButton()
|
PushButton::~PushButton()
|
||||||
|
|
|
@ -178,7 +178,7 @@ ToolButton::ToolButton(QGraphicsWidget *parent)
|
||||||
|
|
||||||
d->syncBorders();
|
d->syncBorders();
|
||||||
setAcceptHoverEvents(true);
|
setAcceptHoverEvents(true);
|
||||||
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(syncBorders()));
|
connect(d->background, SIGNAL(repaintNeeded()), SLOT(syncBorders()));
|
||||||
|
|
||||||
d->animation = new QPropertyAnimation(this, "animationUpdate");
|
d->animation = new QPropertyAnimation(this, "animationUpdate");
|
||||||
d->animation->setStartValue(0);
|
d->animation->setStartValue(0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user