mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-28 01:04:41 +08:00
(EasyHystogramItem) updating image after window resize
This commit is contained in:
parent
b33faa571e
commit
46c4867b2d
@ -501,7 +501,7 @@ void EasyHystogramItem::paintById(QPainter* _painter)
|
|||||||
minimum *= 1e3;
|
minimum *= 1e3;
|
||||||
const auto maximum = minimum + range * 1e3;
|
const auto maximum = minimum + range * 1e3;
|
||||||
const auto realScale = currentScale * slider_k;
|
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)
|
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);
|
scale(m_windowScale / oldScale, 1);
|
||||||
|
|
||||||
|
if (m_hystogramItem->isVisible())
|
||||||
|
m_hystogramItem->updateImage();
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user