Commit be7f27c8 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix cleanup regression (disappearing titles)

Fixes #1296
parent 720ff532
Pipeline #119706 passed with stage
in 8 minutes and 46 seconds
......@@ -62,7 +62,7 @@ MyTextItem::MyTextItem(const QString &txt, QGraphicsItem *parent)
m_shadowEffect->setEnabled(false);
setGraphicsEffect(m_shadowEffect);
updateGeometry();
connect(document(), &QTextDocument::contentsChange, this, [&](int, int, int) { updateGeometry(); });
connect(document(), &QTextDocument::contentsChange, this, &MyTextItem::doUpdateGeometry);
updateTW(false, 2, 1, 0, 0);
}
......@@ -147,7 +147,7 @@ void MyTextItem::refreshFormat()
setTextCursor(cursor);
}
void MyTextItem::updateGeometry(int, int, int)
void MyTextItem::doUpdateGeometry()
{
updateGeometry();
// update gradient if necessary
......
......@@ -74,7 +74,7 @@ private:
int m_tw_seed;
public slots:
void updateGeometry(int, int, int);
void doUpdateGeometry();
void updateGeometry();
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment