Remove auto scroll from registerRefs widget

This commit is contained in:
itayc0hen 2019-12-07 16:29:09 +02:00 committed by Itay Cohen
parent e54ab621fc
commit 52f9a57c04

View File

@ -116,6 +116,7 @@ RegisterRefsWidget::RegisterRefsWidget(MainWindow *main, QAction *action) :
registerRefModel = new RegisterRefModel(&registerRefs, this); registerRefModel = new RegisterRefModel(&registerRefs, this);
registerRefProxyModel = new RegisterRefProxyModel(registerRefModel, this); registerRefProxyModel = new RegisterRefProxyModel(registerRefModel, this);
ui->registerRefTreeView->setModel(registerRefProxyModel); ui->registerRefTreeView->setModel(registerRefProxyModel);
ui->registerRefTreeView->setAutoScroll(false);
ui->registerRefTreeView->sortByColumn(RegisterRefModel::RegColumn, Qt::AscendingOrder); ui->registerRefTreeView->sortByColumn(RegisterRefModel::RegColumn, Qt::AscendingOrder);
actionCopyValue = new QAction(tr("Copy register value"), this); actionCopyValue = new QAction(tr("Copy register value"), this);