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:
Marco Martin 2010-06-24 20:52:14 +00:00
parent 2d4ed4db67
commit 506a22400c
4 changed files with 5 additions and 5 deletions

View File

@ -126,7 +126,7 @@ ComboBox::ComboBox(QGraphicsWidget *parent)
new FocusIndicator(this, "widgets/button");
setNativeWidget(new KComboBox);
connect(Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(syncBorders()));
connect(d->background, SIGNAL(repaintNeeded()), SLOT(syncBorders()));
}
ComboBox::~ComboBox()

View File

@ -101,8 +101,7 @@ Frame::Frame(QGraphicsWidget *parent)
d->svg->setElementPrefix("plain");
d->syncBorders();
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(syncBorders()));
connect(d->svg, SIGNAL(repaintNeeded()), SLOT(syncBorders()));
}
Frame::~Frame()

View File

@ -186,7 +186,8 @@ PushButton::PushButton(QGraphicsWidget *parent)
d->syncBorders();
setAcceptHoverEvents(true);
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(syncBorders()));
connect(d->background, SIGNAL(repaintNeeded()), SLOT(syncBorders()));
}
PushButton::~PushButton()

View File

@ -178,7 +178,7 @@ ToolButton::ToolButton(QGraphicsWidget *parent)
d->syncBorders();
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->setStartValue(0);