mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 16:11:02 +08:00
(EasyGraphicsView) Added possibility to scroll thread names list with mouse wheel
This commit is contained in:
parent
33bd7256ab
commit
acb197557f
@ -1807,6 +1807,16 @@ void EasyThreadNamesWidget::keyReleaseEvent(QKeyEvent* _event)
|
||||
m_view->keyReleaseEvent(_event);
|
||||
}
|
||||
|
||||
void EasyThreadNamesWidget::wheelEvent(QWheelEvent* _event)
|
||||
{
|
||||
auto vbar = m_view->verticalScrollBar();
|
||||
if (vbar != nullptr)
|
||||
{
|
||||
_event->accept();
|
||||
vbar->setValue(vbar->value() - _event->delta());
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -265,6 +265,7 @@ public:
|
||||
void mouseMoveEvent(QMouseEvent* _event) override;
|
||||
void keyPressEvent(QKeyEvent* _event) override;
|
||||
void keyReleaseEvent(QKeyEvent* _event) override;
|
||||
void wheelEvent(QWheelEvent* _event) override;
|
||||
|
||||
void dragEnterEvent(QDragEnterEvent*) override {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user