diff --git a/applet.cpp b/applet.cpp index 80b93dfda..ca047d563 100644 --- a/applet.cpp +++ b/applet.cpp @@ -2896,6 +2896,14 @@ void AppletOverlayWidget::paint(QPainter *painter, painter->fillPath(backgroundShape, wash); } +#if QT_VERSION >= 0x040700 +// in QGraphicsWidget now; preserve BC by implementing it as a protected method +void Applet::geometryChanged() +{ + emit QGraphicsWidget::geometryChanged(); +} +#endif + } // Plasma namespace #include "applet.moc" diff --git a/applet.h b/applet.h index db10354c4..75065e863 100644 --- a/applet.h +++ b/applet.h @@ -723,12 +723,18 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget */ void releaseVisualFocus(); +#if QT_VERSION >= 0x040700 + protected: + void geometryChanged(); // in QGraphicsWidget now; preserve BC +#else /** * Emitted whenever the applet makes a geometry change, so that views * can coordinate themselves with these changes if they desire. */ void geometryChanged(); +#endif + Q_SIGNALS: /** * Emitted when the user completes a transformation of the applet. */