0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

(EasyHystogramItem) updating image after window resize

This commit is contained in:
Victor Zarubkin 2016-12-07 22:35:37 +03:00
parent b33faa571e
commit 46c4867b2d

View File

@ -501,7 +501,7 @@ void EasyHystogramItem::paintById(QPainter* _painter)
minimum *= 1e3;
const auto maximum = minimum + range * 1e3;
const auto realScale = currentScale * slider_k;
const auto offset = minimum * realScale;
const auto offset = minimum * realScale + 9e3;
auto first = ::std::lower_bound(items.begin(), items.end(), minimum + EASY_GLOBALS.begin_time, [](::profiler::block_index_t _item, qreal _value)
{
@ -1468,6 +1468,9 @@ void EasyGraphicsScrollbar::onWindowWidthChange(qreal _width)
}
scale(m_windowScale / oldScale, 1);
if (m_hystogramItem->isVisible())
m_hystogramItem->updateImage();
}
//////////////////////////////////////////////////////////////////////////