adjustSize is not a slot, so create a private slot and use that as a relay

svn path=/trunk/KDE/kdelibs/; revision=1125281
This commit is contained in:
Aaron J. Seigo 2010-05-11 07:20:46 +00:00
parent cd1cb881b9
commit 79d8b41bda
2 changed files with 8 additions and 1 deletions

View File

@ -87,6 +87,7 @@ public:
void updateResizeCorners();
int calculateWidthForHeightAndRatio(int height, qreal ratio);
Plasma::Applet *applet();
void delayedAdjustSize();
Plasma::Dialog *q;
@ -184,6 +185,11 @@ Plasma::Applet *DialogPrivate::applet()
return applet;
}
void DialogPrivate::delayedAdjustSize()
{
q->adjustSize();
}
void DialogPrivate::checkBorders(bool updateMaskIfNeeded)
{
if (resizeChecksWithBorderCheck) {
@ -413,7 +419,7 @@ Dialog::Dialog(QWidget *parent, Qt::WindowFlags f)
d->adjustSizeTimer = new QTimer(this);
d->adjustSizeTimer->setSingleShot(true);
connect(d->adjustSizeTimer, SIGNAL(timeout()), this, SLOT(adjustSize()));
connect(d->adjustSizeTimer, SIGNAL(timeout()), this, SLOT(delayedAdjustSize()));
connect(d->background, SIGNAL(repaintNeeded()), this, SLOT(update()));

View File

@ -179,6 +179,7 @@ class PLASMA_EXPORT Dialog : public QWidget
*/
Q_PRIVATE_SLOT(d, void themeChanged())
Q_PRIVATE_SLOT(d, void checkBorders())
Q_PRIVATE_SLOT(d, void delayedAdjustSize())
};
} // Plasma namespace