pineapple-pictures/navigatorview.cpp

19 lines
485 B
C++
Raw Normal View History

2019-10-03 17:57:14 +08:00
#include "navigatorview.h"
#include <QMouseEvent>
NavigatorView::NavigatorView(QWidget *parent)
: QGraphicsView (parent)
{
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setStyleSheet("background-color: rgba(0, 0, 0, 220);"
"border-radius: 3px;");
}
void NavigatorView::wheelEvent(QWheelEvent *event)
{
event->ignore();
return QGraphicsView::wheelEvent(event);
}