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) ...@@ -62,7 +62,7 @@ MyTextItem::MyTextItem(const QString &txt, QGraphicsItem *parent)
m_shadowEffect->setEnabled(false); m_shadowEffect->setEnabled(false);
setGraphicsEffect(m_shadowEffect); setGraphicsEffect(m_shadowEffect);
updateGeometry(); updateGeometry();
connect(document(), &QTextDocument::contentsChange, this, [&](int, int, int) { updateGeometry(); }); connect(document(), &QTextDocument::contentsChange, this, &MyTextItem::doUpdateGeometry);
updateTW(false, 2, 1, 0, 0); updateTW(false, 2, 1, 0, 0);
} }
...@@ -147,7 +147,7 @@ void MyTextItem::refreshFormat() ...@@ -147,7 +147,7 @@ void MyTextItem::refreshFormat()
setTextCursor(cursor); setTextCursor(cursor);
} }
void MyTextItem::updateGeometry(int, int, int) void MyTextItem::doUpdateGeometry()
{ {
updateGeometry(); updateGeometry();
// update gradient if necessary // update gradient if necessary
......
...@@ -74,7 +74,7 @@ private: ...@@ -74,7 +74,7 @@ private:
int m_tw_seed; int m_tw_seed;
public slots: public slots:
void updateGeometry(int, int, int); void doUpdateGeometry();
void updateGeometry(); 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