Fix warnings:

fix -Winconsistent-missing-override
fix -Wself-assign
This commit is contained in:
wmayer
2019-08-28 16:25:39 +02:00
parent f5b7f3bde8
commit 9d95936891
2 changed files with 4 additions and 5 deletions

View File

@@ -55,10 +55,10 @@ public:
~QGIFace();
enum {Type = QGraphicsItem::UserType + 104};
int type() const { return Type;}
QRectF boundingRect() const;
QPainterPath shape() const;
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
int type() const override { return Type;}
QRectF boundingRect() const override;
QPainterPath shape() const override;
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 ) override;
public:
enum fillMode {

View File

@@ -229,7 +229,6 @@ void QGITile::makeText(void)
m_qgTextC->setPlainText(m_textC);
m_qgTextC->setColor(m_colCurrent);
double textHeightC = m_qgTextC->boundingRect().height();
textHeightC = textHeightC;
if (m_row < 0) { // below line
vOffset = m_high * (1 + verticalFudge);
} else {