1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

ChatLineContent: removed boundingSceneRect()

This commit is contained in:
krepa098 2015-01-31 17:46:25 +01:00
parent 5668606159
commit 6a50add547
9 changed files with 0 additions and 25 deletions

View File

@ -46,7 +46,6 @@ public:
virtual qreal getAscent() const;
virtual QRectF boundingSceneRect() const = 0;
virtual QRectF boundingRect() const = 0;
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) = 0;

View File

@ -29,11 +29,6 @@ QRectF Image::boundingRect() const
return QRectF(QPointF(-size.width() / 2.0, -size.height() / 2.0), size);
}
QRectF Image::boundingSceneRect() const
{
return QRectF(scenePos(), size);
}
qreal Image::getAscent() const
{
return 0.0;

View File

@ -29,7 +29,6 @@ public:
virtual QRectF boundingRect() const override;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
virtual void setWidth(qreal width) override;
virtual QRectF boundingSceneRect() const override;
virtual qreal getAscent() const override;
private:

View File

@ -55,11 +55,6 @@ void NotificationIcon::setWidth(qreal width)
Q_UNUSED(width)
}
QRectF NotificationIcon::boundingSceneRect() const
{
return QRectF(scenePos(), size);
}
qreal NotificationIcon::getAscent() const
{
return 3.0;

View File

@ -33,7 +33,6 @@ public:
virtual QRectF boundingRect() const override;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
virtual void setWidth(qreal width) override;
virtual QRectF boundingSceneRect() const override;
virtual qreal getAscent() const override;
private slots:

View File

@ -38,11 +38,6 @@ QRectF Spinner::boundingRect() const
return QRectF(QPointF(-size.width() / 2.0, -size.height() / 2.0), size);
}
QRectF Spinner::boundingSceneRect() const
{
return QRectF(scenePos(), size);
}
void Spinner::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
QTransform rotMat;

View File

@ -30,7 +30,6 @@ public:
Spinner(const QString& img, QSize size, qreal speed);
virtual QRectF boundingRect() const override;
virtual QRectF boundingSceneRect() const override;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
virtual void setWidth(qreal width) override;
virtual void visibilityChanged(bool visible) override;

View File

@ -140,11 +140,6 @@ QString Text::getSelectedText() const
return selectedText;
}
QRectF Text::boundingSceneRect() const
{
return QRectF(scenePos(), size);
}
QRectF Text::boundingRect() const
{
return QRectF(QPointF(0, 0), size);

View File

@ -43,7 +43,6 @@ public:
virtual bool isOverSelection(QPointF scenePos) const override;
virtual QString getSelectedText() const override;
virtual QRectF boundingSceneRect() const override;
virtual QRectF boundingRect() const override;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;