X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.h;h=a932380b44f0d695f662e464151fe8a9a6b34743;hp=78ba34188b86b917335b8130dd91709fb27bbe4b;hb=31745736b8b31647f6224c5a3fe9e82e0320f0f1;hpb=0c4d5e393048c0f7487c9080d5f2625f016fb41c diff --git a/src/qtui/chatscene.h b/src/qtui/chatscene.h index 78ba3418..a932380b 100644 --- a/src/qtui/chatscene.h +++ b/src/qtui/chatscene.h @@ -44,6 +44,16 @@ public: CutoffRight }; + enum ItemType { + ChatLineType = QGraphicsItem::UserType + 1, + ChatItemType, + TimestampChatItemType, + SenderChatItemType, + ContentsChatItemType, + SearchHighlightType, + WebPreviewType + }; + ChatScene(QAbstractItemModel *model, const QString &idString, qreal width, QObject *parent); virtual ~ChatScene(); @@ -81,6 +91,8 @@ public: signals: void lastLineChanged(QGraphicsItem *item, qreal offset); + void layoutChanged(); // indicates changes to the scenerect due to resizing of the contentsitems + void mouseMoveWhileSelecting(const QPointF &scenePos); protected: virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);