-void WebPreviewItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
- Q_UNUSED(option); Q_UNUSED(widget);
- painter->setClipRect(boundingRect());
- painter->setPen(QPen(Qt::black, 5));
- 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);
+
+void WebPreviewItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
+{
+ Q_UNUSED(option); Q_UNUSED(widget);
+ painter->setClipRect(boundingRect());
+ painter->setPen(QPen(Qt::black, 5));
+ painter->setBrush(Qt::black);
+ painter->setRenderHints(QPainter::Antialiasing);
+ painter->drawRoundedRect(boundingRect(), 10, 10);