mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 10:49:57 +00:00
make non-editable fields in dialogue sub view selectable (Fixes #2818)
This commit is contained in:
parent
c157fef2e0
commit
c3a31d13b1
1 changed files with 4 additions and 2 deletions
|
@ -104,7 +104,9 @@ QWidget* CSVWorld::NotEditableSubDelegate::createEditor (QWidget *parent,
|
|||
const QStyleOptionViewItem& option,
|
||||
const QModelIndex& index) const
|
||||
{
|
||||
return new QLabel(parent);
|
||||
QLabel *label = new QLabel(parent);
|
||||
label->setTextInteractionFlags (Qt::TextSelectableByMouse);
|
||||
return label;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -822,7 +824,7 @@ void CSVWorld::SimpleDialogueSubView::dataChanged (const QModelIndex & index)
|
|||
void CSVWorld::SimpleDialogueSubView::rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
|
||||
{
|
||||
QModelIndex currentIndex(mTable->getModelIndex(getUniversalId().getId(), 0));
|
||||
|
||||
|
||||
if (!currentIndex.isValid())
|
||||
{
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue