* Introduce proper single/double/triple click detection. This will make it possible to add
some standard selection modes, allows partial selection of links and some more stuff
* ChatItem->handleClick() is now called appropriately, in addition to the standard mouse events
* Enable drag/drop for selections in ChatView, i.e. you can now drag text somewhere else
* Some cleanups
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
- //virtual bool handleClick(ClickMode mode);
-
inline QTextLayout *layout() const;
virtual QTextLayout::FormatRange selectionFormat() const;
inline QTextLayout *layout() const;
virtual QTextLayout::FormatRange selectionFormat() const;
_clickTimer.setSingleShot(true);
connect(&_clickTimer, SIGNAL(timeout()), SLOT(clickTimeout()));
_clickTimer.setSingleShot(true);
connect(&_clickTimer, SIGNAL(timeout()), SLOT(clickTimeout()));
+ _clickTimer.setInterval(QApplication::doubleClickInterval());
+ _clickTimer.setSingleShot(true);
+ connect(&_clickTimer, SIGNAL(timeout()), SLOT(clickTimeout()));
+
setItemIndexMethod(QGraphicsScene::NoIndex);
}
setItemIndexMethod(QGraphicsScene::NoIndex);
}