mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 00:31:02 +08:00
(GUI) Fixed warnings
This commit is contained in:
parent
0d5acc75e2
commit
c7ba19cb4d
@ -1205,8 +1205,6 @@ void EasyGraphicsView::mouseMoveEvent(QMouseEvent* _event)
|
||||
|
||||
if (m_chronometerItemAux->isVisible())
|
||||
{
|
||||
auto x = m_chronometerItemAux->toItem(mouseScenePos.x());
|
||||
|
||||
auto prevValue = m_chronometerItemAux->hoverLeft();
|
||||
m_chronometerItemAux->setHoverLeft(m_chronometerItemAux->hoverLeft(mouseScenePos.x()));
|
||||
needUpdate = needUpdate || (prevValue != m_chronometerItemAux->hoverLeft());
|
||||
|
@ -240,7 +240,7 @@ void EasyFPSGraphicsItem::clear()
|
||||
void EasyFPSGraphicsItem::addPoint(uint32_t _maxFrameTime, uint32_t _avgFrameTime)
|
||||
{
|
||||
m_frames.emplace_back(_maxFrameTime, _avgFrameTime);
|
||||
if (m_frames.size() > EASY_GLOBALS.max_fps_history)
|
||||
if (static_cast<int>(m_frames.size()) > EASY_GLOBALS.max_fps_history)
|
||||
m_frames.pop_front();
|
||||
}
|
||||
|
||||
|
@ -348,7 +348,7 @@ void EasyHistogramItem::paintByPtr(QPainter* _painter)
|
||||
|
||||
QRectF rect;
|
||||
QBrush brush(Qt::SolidPattern);
|
||||
QRgb previousColor = 0;
|
||||
//QRgb previousColor = 0;
|
||||
|
||||
_painter->save();
|
||||
_painter->setTransform(QTransform::fromScale(1.0 / currentScale, 1), true);
|
||||
@ -538,7 +538,7 @@ void EasyHistogramItem::paintById(QPainter* _painter)
|
||||
|
||||
QRectF rect;
|
||||
QBrush brush(Qt::SolidPattern);
|
||||
QRgb previousColor = 0;
|
||||
//QRgb previousColor = 0;
|
||||
|
||||
_painter->save();
|
||||
_painter->setTransform(QTransform::fromScale(1.0 / currentScale, 1), true);
|
||||
|
@ -790,11 +790,10 @@ size_t EasyTreeWidgetLoader::setTreeInternalPlain(const ::profiler::BlocksTreeRo
|
||||
{
|
||||
++total_items;
|
||||
|
||||
size_t children_items_number = 0;
|
||||
::profiler::timestamp_t children_duration = 0;
|
||||
if (!child.children.empty())
|
||||
{
|
||||
children_items_number = setTreeInternalPlain(_threadRoot, _firstCswitch, _beginTime, child.children, _frame, _frame, _left, _right, _strict, children_duration, _colorizeRows, _addZeroBlocks, _units);
|
||||
setTreeInternalPlain(_threadRoot, _firstCswitch, _beginTime, child.children, _frame, _frame, _left, _right, _strict, children_duration, _colorizeRows, _addZeroBlocks, _units);
|
||||
if (interrupted())
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user