1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

rwviewer: select rows in object viewer

This commit is contained in:
Anonymous Maarten 2018-06-22 05:59:35 +02:00
parent 640af372ba
commit ee455bb157

View File

@ -120,6 +120,7 @@ ObjectViewer::ObjectViewer(QWidget* parent, Qt::WindowFlags f)
objectList->setColumnWidth(1, 150);
objectList->setColumnWidth(2, 200);
objectList->setSortingEnabled(true);
objectList->setSelectionBehavior(QAbstractItemView::SelectionBehavior::SelectRows);
connect(objectList->selectionModel(),
SIGNAL(currentChanged(QModelIndex, QModelIndex)), this,
SLOT(showItem(QModelIndex)));