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:
parent
cd1cb881b9
commit
79d8b41bda
@ -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()));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user