Skip to content

Commit

Permalink
work on #32 ! But will do it for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
dridk committed Dec 22, 2017
1 parent de95fd7 commit 471c1d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/gui/traceview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ void TraceView::mousePressEvent(QMouseEvent *event)
bool TraceView::viewportEvent(QEvent *event)
{
return QAbstractScrollArea::viewportEvent(event);
}
//-------------------------------------------------------------------------------
void TraceView::wheelEvent(QWheelEvent *event)
{
// TODO
// mXFactor += event->delta()/10;
// setScaleFactor(mXFactor);


}

void TraceView::dragEnterEvent(QDragEnterEvent *event)
Expand Down Expand Up @@ -593,6 +602,8 @@ void TraceView::setScaleFactor(float factor)
mXFactor = factor;
viewport()->update();
updateScrollbar();


}
//-------------------------------------------------------------------------------
void TraceView::setSelection(int pos, int length)
Expand Down
1 change: 1 addition & 0 deletions src/gui/traceview.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ protected :
void mouseMoveEvent(QMouseEvent * event) override;
void mousePressEvent(QMouseEvent * event) override;
bool viewportEvent(QEvent * event) override;
void wheelEvent(QWheelEvent * event) override;

void dragEnterEvent(QDragEnterEvent * event) override;
void dropEvent(QDropEvent * event) override;
Expand Down

0 comments on commit 471c1d1

Please sign in to comment.