From 6c44f3cfc618a3fc55f583597be3697714a07ae7 Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Thu, 6 Nov 2008 14:57:20 +0100 Subject: [PATCH] fix a warning for the non-webkit guys --- src/qtui/chatitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1