Skip to content

Commit dbf93d1

Browse files
committed
Emit imagePainted event in update method instead of paint.
1 parent 4b3fd27 commit dbf93d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/TerminalDisplay.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,6 @@ void TerminalDisplay::paint(QPainter *painter)
12711271
//drawBackground(*painter, rect, m_palette.background().color(), false /* use opacity setting */);
12721272
drawContents(*painter, dirtyRect);
12731273

1274-
emit imagePainted();
1275-
12761274
//drawInputMethodPreeditString(*painter, preeditRect());
12771275
//paintFilters(painter);
12781276
}
@@ -3170,6 +3168,7 @@ void TerminalDisplay::update(const QRegion &region)
31703168
// QQuickPaintedItem::update(rect.adjusted(-1, -1, +1, +1));
31713169
// }
31723170
QQuickPaintedItem::update(region.boundingRect().adjusted(-1, -1, +1, +1));
3171+
emit imagePainted();
31733172
}
31743173

31753174
void TerminalDisplay::update()

0 commit comments

Comments
 (0)