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:
parent
390f43b365
commit
ce0cb1e916
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user