projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f0a399
)
fix a warning for the non-webkit guys
author
Marcus Eggenberger
<egs@quassel-irc.org>
Thu, 6 Nov 2008 13:57:20 +0000
(14:57 +0100)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Thu, 6 Nov 2008 13:57:20 +0000
(14:57 +0100)
src/qtui/chatitem.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatitem.cpp
b/src/qtui/chatitem.cpp
index
b04083b
..
679dc87
100644
(file)
--- 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;