X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.h;h=c2cb4ee48fc9a858dfd11a504c747fec908d6438;hb=348384bd80c0896b665d807763d8d837e3b1fb3d;hp=1686a9e17c2b0a001801ec57d2fdfaa3ec65fd7e;hpb=98f12cf014e5ef0b2f3827fb0b1e48931618d33c;p=quassel.git diff --git a/src/qtui/chatitem.h b/src/qtui/chatitem.h index 1686a9e1..c2cb4ee4 100644 --- a/src/qtui/chatitem.h +++ b/src/qtui/chatitem.h @@ -166,6 +166,9 @@ private: QList findClickables(); void endHoverMode(); + void showWebPreview(const Clickable &click); + void clearWebPreview(); + // WARNING: setGeometry and setHeight should not be used without either: // a) calling prepareGeometryChange() immediately before setColumns() @@ -197,13 +200,15 @@ struct ContentsChatItem::Clickable { }; struct ContentsChatItemPrivate : ChatItemPrivate { + ContentsChatItem *contentsItem; QList clickables; ContentsChatItem::Clickable currentClickable; bool hasDragged; - ContentsChatItemPrivate(QTextLayout *l, const QList &c) : ChatItemPrivate(l), clickables(c), hasDragged(false) {} + ContentsChatItemPrivate(QTextLayout *l, const QList &c, ContentsChatItem *parent) : ChatItemPrivate(l), contentsItem(parent), clickables(c), hasDragged(false) {} }; + //inlines regarding ContentsChatItemPrivate ContentsChatItemPrivate *ContentsChatItem::privateData() const { return (ContentsChatItemPrivate *)ChatItem::privateData(); } @@ -222,9 +227,6 @@ private: qint16 wordidx; qint16 lineCount; qreal choppedTrailing; - qint16 lastwrapcol; - qreal lastwrappos; - qreal width; }; /*************************************************************************************************/