mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 11:52:40 +01:00
rwviewer: select rows in object viewer
This commit is contained in:
parent
640af372ba
commit
ee455bb157
@ -120,6 +120,7 @@ ObjectViewer::ObjectViewer(QWidget* parent, Qt::WindowFlags f)
|
|||||||
objectList->setColumnWidth(1, 150);
|
objectList->setColumnWidth(1, 150);
|
||||||
objectList->setColumnWidth(2, 200);
|
objectList->setColumnWidth(2, 200);
|
||||||
objectList->setSortingEnabled(true);
|
objectList->setSortingEnabled(true);
|
||||||
|
objectList->setSelectionBehavior(QAbstractItemView::SelectionBehavior::SelectRows);
|
||||||
connect(objectList->selectionModel(),
|
connect(objectList->selectionModel(),
|
||||||
SIGNAL(currentChanged(QModelIndex, QModelIndex)), this,
|
SIGNAL(currentChanged(QModelIndex, QModelIndex)), this,
|
||||||
SLOT(showItem(QModelIndex)));
|
SLOT(showItem(QModelIndex)));
|
||||||
|
Loading…
Reference in New Issue
Block a user