Reimplement QGraphicsEffect::sourceChanged() properly

sourceChanged() takes one argument, not zero.

tests/auto/widgets/graphicsview/qgraphicseffectsource/tst_qgraphicseffectsource.cpp:125:
warning: 'CustomEffect::sourceChanged' hides overloaded virtual function
[-Woverloaded-virtual]
    void sourceChanged()
         ^
src/widgets/effects/qgraphicseffect.h:104:
hidden overloaded virtual function 'QGraphicsEffect::sourceChanged'
declared here
    virtual void sourceChanged(ChangeFlags flags);
                 ^

Change-Id: If227b7b79c4a2fc3d21f93e371510ddccb408d7d
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
This commit is contained in:
Bradley T. Hughes 2011-12-20 09:26:30 +01:00 committed by Qt by Nokia
parent 103c2e3690
commit f0710e1d95

View File

@ -122,7 +122,7 @@ public:
source()->draw(painter);
}
void sourceChanged()
void sourceChanged(ChangeFlags)
{ m_sourceChanged = true; }
void sourceBoundingRectChanged()