fix a warning for the non-webkit guys
authorMarcus Eggenberger <egs@quassel-irc.org>
Thu, 6 Nov 2008 13:57:20 +0000 (14:57 +0100)
committerMarcus Eggenberger <egs@quassel-irc.org>
Thu, 6 Nov 2008 13:57:20 +0000 (14:57 +0100)
src/qtui/chatitem.cpp

index b04083b..679dc87 100644 (file)
@@ -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;