diff options
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r-- | qt-ui/profilegraphics.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h index 8f83deabb..2e4f0d596 100644 --- a/qt-ui/profilegraphics.h +++ b/qt-ui/profilegraphics.h @@ -34,11 +34,11 @@ public: void removeToolTip(const QString& toolTip); void refresh(struct graphics_context* gc, QPointF pos); bool isExpanded(); - void persistPos(); void readPos(); - - void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); + void mousePressEvent(QGraphicsSceneMouseEvent* event); + void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); + bool eventFilter(QObject* , QEvent* ); public Q_SLOTS: void setRect(const QRectF& rect); @@ -49,8 +49,8 @@ private: QGraphicsLineItem *separator; QGraphicsSimpleTextItem *title; Status status; - QRectF rectangle; + bool dragging; }; class EventItem : public QGraphicsPolygonItem |