- QList<ContentsChatItem::Clickable> clickables;
- ContentsChatItem::Clickable currentClickable;
- bool hasDragged;
-
-#ifndef HAVE_WEBKIT
- ContentsChatItemPrivate(QTextLayout *l, const QList<ContentsChatItem::Clickable> &c, ContentsChatItem *parent) : ChatItemPrivate(l), contentsItem(parent), clickables(c), hasDragged(false) {}
-#else
- ContentsChatItemPrivate(QTextLayout *l, const QList<ContentsChatItem::Clickable> &c, ContentsChatItem *parent) : ChatItemPrivate(l), contentsItem(parent), clickables(c), hasDragged(false), previewItem(0) {}
- ~ContentsChatItemPrivate();
-
- void loadWebPreview(const QString &url, const QRectF &urlRect);
- void clearWebPreview();
-
-private:
- class PreviewItem;
- PreviewItem *previewItem;
- QString previewUrl;
- QRectF previewUrlRect;
-#endif //#ifndef HAVE_WEBKIT
-};
+ ClickableList clickables;
+ Clickable currentClickable;
+ Clickable activeClickable;