X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.cpp;h=679dc8721db9168b5fe155ea19bcf165aa2f6ed5;hp=b04083b64b2b9adecd0dd27c390d09993884adba;hb=6c44f3cfc618a3fc55f583597be3697714a07ae7;hpb=2ae23da65ad59bb8a08dc8a58e6b5e902eb3c0d5 diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index b04083b6..679dc872 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -534,7 +534,9 @@ void ContentsChatItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) { } void ContentsChatItem::showWebPreview(const Clickable &click) { -#ifdef HAVE_WEBKIT +#ifndef HAVE_WEBKIT + Q_UNUSED(click); +#else QTextLine line = layout()->lineForTextPosition(click.start); qreal x = line.cursorToX(click.start); qreal width = line.cursorToX(click.start + click.length) - x;