#include "networkmodel.h"
#include "network.h"
+#include "uisettings.h"
+
/*****************************************
* The TreeView showing the Buffers
*****************************************/
void BufferView::wheelEvent(QWheelEvent* event)
{
+ UiSettings s;
+ if(s.value("MouseWheelChangesBuffers",QVariant(true)).toBool()) {
int rowDelta = ( event->delta() > 0 ) ? -1 : 1;
QModelIndex currentIndex = selectionModel()->currentIndex();
QModelIndex resultingIndex;
}
selectionModel()->setCurrentIndex( resultingIndex, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows );
selectionModel()->select( resultingIndex, QItemSelectionModel::ClearAndSelect );
+ } else {
+ QAbstractScrollArea::wheelEvent(event);
+ }
}