parent
63ee8b2e55
commit
d819c88ff8
|
@ -30,7 +30,9 @@ ForceScrollPerPixel::ForceScrollPerPixel(QAbstractItemView* item_view, QObject*
|
|||
}
|
||||
|
||||
bool ForceScrollPerPixel::eventFilter(QObject* object, QEvent* event) {
|
||||
if (object == item_view_ && event->type() != QEvent::Destroy) {
|
||||
if (object == item_view_ &&
|
||||
event->type() != QEvent::Destroy &&
|
||||
event->type() != QEvent::WinIdChange) {
|
||||
item_view_->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||
item_view_->verticalScrollBar()->setSingleStep(20);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue