X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fwebpreviewitem.cpp;h=45c080cd938caa7f3a0fdfdaa90cb9e1b5c2ffd4;hp=29dfedeca86fad5f73ac6ae2ab37b4acac0ad1f6;hb=d36a37a4a2e2fa889cf12d596258f9ba4dfcc5ed;hpb=17b8c981d7c47800392b7fd1c043c5ac1bcb19ef diff --git a/src/qtui/webpreviewitem.cpp b/src/qtui/webpreviewitem.cpp index 29dfedec..45c080cd 100644 --- a/src/qtui/webpreviewitem.cpp +++ b/src/qtui/webpreviewitem.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -26,7 +26,7 @@ #include #include -WebPreviewItem::WebPreviewItem(const QString &url) +WebPreviewItem::WebPreviewItem(const QUrl &url) : QGraphicsItem(0), // needs to be a top level item as we otherwise cannot guarantee that it's on top of other chatlines _boundingRect(0, 0, 400, 300) { @@ -54,10 +54,6 @@ void WebPreviewItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *op painter->setBrush(Qt::black); painter->setRenderHints(QPainter::Antialiasing); painter->drawRoundedRect(boundingRect(), 10, 10); - - painter->setPen(QPen(Qt::green)); - QString text = QString::number(zValue()); - painter->drawText(_boundingRect.center(), text); } #endif //#ifdef HAVE_WEBKIT