summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicssceneevent.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-16 15:04:13 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-11 14:51:37 (GMT)
commita72e6d351f136e0cd5e0f9c178e5f09eb70ca2db (patch)
treefc69eb6f0d84d8504fe91e2b196a482796763d7e /src/gui/graphicsview/qgraphicssceneevent.h
parent2e91de4a0046c17ff41f4ed533542a5fc3858087 (diff)
downloadQt-a72e6d351f136e0cd5e0f9c178e5f09eb70ca2db.zip
Qt-a72e6d351f136e0cd5e0f9c178e5f09eb70ca2db.tar.gz
Qt-a72e6d351f136e0cd5e0f9c178e5f09eb70ca2db.tar.bz2
Removed the use of QSharedPointer from gesture api - since QGesture
are QObject now everything is much simplier.
Diffstat (limited to 'src/gui/graphicsview/qgraphicssceneevent.h')
-rw-r--r--src/gui/graphicsview/qgraphicssceneevent.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicssceneevent.h b/src/gui/graphicsview/qgraphicssceneevent.h
index d1a301e..244c25e 100644
--- a/src/gui/graphicsview/qgraphicssceneevent.h
+++ b/src/gui/graphicsview/qgraphicssceneevent.h
@@ -48,7 +48,6 @@
#include <QtGui/qpolygon.h>
#include <QtCore/qset.h>
#include <QtCore/qhash.h>
-#include <QtCore/qsharedpointer.h>
QT_BEGIN_HEADER
@@ -324,8 +323,8 @@ public:
const QGesture* gesture(Qt::GestureType type) const;
const QGesture* gesture(const QString &type) const;
- QList<QSharedPointer<QGesture> > gestures() const;
- void setGestures(const QList<QSharedPointer<QGesture> > &gestures);
+ QList<QGesture*> gestures() const;
+ void setGestures(const QList<QGesture*> &gestures);
QSet<QString> cancelledGestures() const;
void setCancelledGestures(const QSet<QString> &cancelledGestures);
@@ -336,7 +335,7 @@ public:
QPolygonF mapToItem(const QRect &rect, QGraphicsItem *item) const;
protected:
- QHash<QString, QSharedPointer<QGesture> > m_gestures;
+ QHash<QString, QGesture*> m_gestures;
QSet<QString> m_cancelledGestures;
};