Skip to content

Commit

Permalink
Emit imagePainted event in update method instead of paint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Swordfish90 committed Jan 14, 2015
1 parent 4b3fd27 commit dbf93d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/TerminalDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1271,8 +1271,6 @@ void TerminalDisplay::paint(QPainter *painter)
//drawBackground(*painter, rect, m_palette.background().color(), false /* use opacity setting */);
drawContents(*painter, dirtyRect);

emit imagePainted();

//drawInputMethodPreeditString(*painter, preeditRect());
//paintFilters(painter);
}
Expand Down Expand Up @@ -3170,6 +3168,7 @@ void TerminalDisplay::update(const QRegion &region)
// QQuickPaintedItem::update(rect.adjusted(-1, -1, +1, +1));
// }
QQuickPaintedItem::update(region.boundingRect().adjusted(-1, -1, +1, +1));
emit imagePainted();
}

void TerminalDisplay::update()
Expand Down

0 comments on commit dbf93d1

Please sign in to comment.