From: Marcus Eggenberger Date: Thu, 6 Nov 2008 13:57:20 +0000 (+0100) Subject: fix a warning for the non-webkit guys X-Git-Tag: 0.3.1~63 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=6c44f3cfc618a3fc55f583597be3697714a07ae7;ds=sidebyside fix a warning for the non-webkit guys --- 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;