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:
parent
5668606159
commit
6a50add547
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user