Commit b8038191 authored by Ulf Hermann's avatar Ulf Hermann

Timeline: Emit heightChanged() when empty changes

The height of a model is 0 if the model is empty. Thus, when clearing
we have to emit heightChanged().

Change-Id: I6f05c2a32cff648d6aa8e623e17aebe9ae4fcb5c
Task-number: QTCREATORBUG-14507
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent e034b244
......@@ -586,8 +586,10 @@ void TimelineModel::clear()
d->endTimes.clear();
if (hadRowHeights)
emit expandedRowHeightChanged(-1, -1);
if (!wasEmpty)
if (!wasEmpty) {
emit emptyChanged();
emit heightChanged();
}
}
int TimelineModel::nextItemBySelectionId(int selectionId, qint64 time, int currentItem) const
......
Markdown is supported
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