Fix "Warning: Class ToolBox implements the interface QGraphicsItem but does not list it in Q_INTERFACES. qobject_cast to QGraphicsItem will not work!" with qt-4.6

svn path=/trunk/KDE/kdelibs/; revision=1025997
This commit is contained in:
Laurent Montel 2009-09-20 12:53:16 +00:00
parent 390f43b365
commit ce0cb1e916
2 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,9 @@ class View;
class AppletHandle : public QObject, public QGraphicsItem
{
Q_OBJECT
#if QT_VERSION >= 0x040600
Q_INTERFACES(QGraphicsItem)
#endif
public:
enum FadeType {
FadeIn,

View File

@ -40,7 +40,9 @@ class ToolBoxPrivate;
class ToolBox : public QObject, public QGraphicsItem
{
Q_OBJECT
#if QT_VERSION >= 0x040600
Q_INTERFACES(QGraphicsItem)
#endif
public:
/**
* These flags represents what borders should be drawn