diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-05-26 14:02:25 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-05-26 12:21:51 +0000 |
commit | b8038191e693f5649686d56b2192169ea1f53a25 (patch) | |
tree | 8e7b4fc2acf56056cb979f7d75184aed0bd304f8 | |
parent | e034b244c484df8d2e089285521a1aee6bee63a7 (diff) | |
download | qt-creator-b8038191e693f5649686d56b2192169ea1f53a25.tar.gz |
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: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
-rw-r--r-- | src/libs/timeline/timelinemodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/timeline/timelinemodel.cpp b/src/libs/timeline/timelinemodel.cpp index 5498077bfd..0ebf16ddc2 100644 --- a/src/libs/timeline/timelinemodel.cpp +++ b/src/libs/timeline/timelinemodel.cpp @@ -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 |