X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.h;h=f572bb441f6de9ac46e3e24a3db8213d69948ec6;hp=b6e8a9cf70b62933077467426a846d2f27879fac;hb=e65e46d007d7f5f59274590dec3bc1d8e5f94e91;hpb=3ff2a8a6d3750fc5b68af6faeece5b60e7a25f20 diff --git a/src/qtui/chatitem.h b/src/qtui/chatitem.h index b6e8a9cf..f572bb44 100644 --- a/src/qtui/chatitem.h +++ b/src/qtui/chatitem.h @@ -202,9 +202,14 @@ struct ContentsChatItemPrivate : ChatItemPrivate { ContentsChatItem::Clickable currentClickable; bool hasDragged; +#ifdef HAVE_WEBKIT ContentsChatItemPrivate(QTextLayout *l, const QList &c, ContentsChatItem *parent) : ChatItemPrivate(l), contentsItem(parent), clickables(c), hasDragged(false), controller(0) {} +#else + ContentsChatItemPrivate(QTextLayout *l, const QList &c, ContentsChatItem *parent) : ChatItemPrivate(l), contentsItem(parent), clickables(c), hasDragged(false) {} +#endif ~ContentsChatItemPrivate(); +#ifdef HAVE_WEBKIT void loadWebPreview(const QString &url, const QRectF &urlRect); void clearPreview(); @@ -212,8 +217,10 @@ private: class PreviewController; class PreviewItem; PreviewController *controller; +#endif //#ifdef HAVE_WEBKIT }; +#ifdef HAVE_WEBKIT class ContentsChatItemPrivate::PreviewController : public QObject { Q_OBJECT public: @@ -242,6 +249,7 @@ public: private: QRectF _boundingRect; }; +#endif //#ifdef HAVE_WEBKIT //inlines regarding ContentsChatItemPrivate ContentsChatItemPrivate *ContentsChatItem::privateData() const { return (ContentsChatItemPrivate *)ChatItem::privateData(); }