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();
|
void updateResizeCorners();
|
||||||
int calculateWidthForHeightAndRatio(int height, qreal ratio);
|
int calculateWidthForHeightAndRatio(int height, qreal ratio);
|
||||||
Plasma::Applet *applet();
|
Plasma::Applet *applet();
|
||||||
|
void delayedAdjustSize();
|
||||||
|
|
||||||
Plasma::Dialog *q;
|
Plasma::Dialog *q;
|
||||||
|
|
||||||
@ -184,6 +185,11 @@ Plasma::Applet *DialogPrivate::applet()
|
|||||||
return applet;
|
return applet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DialogPrivate::delayedAdjustSize()
|
||||||
|
{
|
||||||
|
q->adjustSize();
|
||||||
|
}
|
||||||
|
|
||||||
void DialogPrivate::checkBorders(bool updateMaskIfNeeded)
|
void DialogPrivate::checkBorders(bool updateMaskIfNeeded)
|
||||||
{
|
{
|
||||||
if (resizeChecksWithBorderCheck) {
|
if (resizeChecksWithBorderCheck) {
|
||||||
@ -413,7 +419,7 @@ Dialog::Dialog(QWidget *parent, Qt::WindowFlags f)
|
|||||||
|
|
||||||
d->adjustSizeTimer = new QTimer(this);
|
d->adjustSizeTimer = new QTimer(this);
|
||||||
d->adjustSizeTimer->setSingleShot(true);
|
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()));
|
connect(d->background, SIGNAL(repaintNeeded()), this, SLOT(update()));
|
||||||
|
|
||||||
|
1
dialog.h
1
dialog.h
@ -179,6 +179,7 @@ class PLASMA_EXPORT Dialog : public QWidget
|
|||||||
*/
|
*/
|
||||||
Q_PRIVATE_SLOT(d, void themeChanged())
|
Q_PRIVATE_SLOT(d, void themeChanged())
|
||||||
Q_PRIVATE_SLOT(d, void checkBorders())
|
Q_PRIVATE_SLOT(d, void checkBorders())
|
||||||
|
Q_PRIVATE_SLOT(d, void delayedAdjustSize())
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Plasma namespace
|
} // Plasma namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user