mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-09 21:44:54 +00:00
Merged merge request !19
This commit is contained in:
commit
0bdd8f7d03
@ -59,6 +59,7 @@
|
|||||||
Bug #4480: Segfault in QuickKeysMenu when item no longer in inventory
|
Bug #4480: Segfault in QuickKeysMenu when item no longer in inventory
|
||||||
Bug #4489: Goodbye doesn't block dialogue hyperlinks
|
Bug #4489: Goodbye doesn't block dialogue hyperlinks
|
||||||
Bug #4490: PositionCell on player gives "Error: tried to add local script twice"
|
Bug #4490: PositionCell on player gives "Error: tried to add local script twice"
|
||||||
|
Bug #3249: Fixed revert function not updating views properly
|
||||||
Feature #2606: Editor: Implemented (optional) case sensitive global search
|
Feature #2606: Editor: Implemented (optional) case sensitive global search
|
||||||
Feature #3276: Editor: Search- Show number of (remaining) search results and indicate a search without any results
|
Feature #3276: Editor: Search- Show number of (remaining) search results and indicate a search without any results
|
||||||
Feature #3641: Editor: Limit FPS in 3d preview window
|
Feature #3641: Editor: Limit FPS in 3d preview window
|
||||||
|
@ -136,7 +136,7 @@ namespace CSMWorld
|
|||||||
struct VarTypeColumn : public Column<ESXRecordT>
|
struct VarTypeColumn : public Column<ESXRecordT>
|
||||||
{
|
{
|
||||||
VarTypeColumn (ColumnBase::Display display)
|
VarTypeColumn (ColumnBase::Display display)
|
||||||
: Column<ESXRecordT> (Columns::ColumnId_ValueType, display)
|
: Column<ESXRecordT> (Columns::ColumnId_ValueType, display, ColumnBase::Flag_Table | ColumnBase::Flag_Dialogue | ColumnBase::Flag_Dialogue_Refresh)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
virtual QVariant get (const Record<ESXRecordT>& record) const
|
virtual QVariant get (const Record<ESXRecordT>& record) const
|
||||||
@ -161,7 +161,7 @@ namespace CSMWorld
|
|||||||
template<typename ESXRecordT>
|
template<typename ESXRecordT>
|
||||||
struct VarValueColumn : public Column<ESXRecordT>
|
struct VarValueColumn : public Column<ESXRecordT>
|
||||||
{
|
{
|
||||||
VarValueColumn() : Column<ESXRecordT> (Columns::ColumnId_Value, ColumnBase::Display_Var) {}
|
VarValueColumn() : Column<ESXRecordT> (Columns::ColumnId_Value, ColumnBase::Display_Var, ColumnBase::Flag_Table | ColumnBase::Flag_Dialogue | ColumnBase::Flag_Dialogue_Refresh) {}
|
||||||
|
|
||||||
virtual QVariant get (const Record<ESXRecordT>& record) const
|
virtual QVariant get (const Record<ESXRecordT>& record) const
|
||||||
{
|
{
|
||||||
|
@ -84,15 +84,28 @@ bool CSMWorld::IdTable::setData (const QModelIndex &index, const QVariant &value
|
|||||||
if (mIdCollection->getColumn (index.column()).isEditable() && role==Qt::EditRole)
|
if (mIdCollection->getColumn (index.column()).isEditable() && role==Qt::EditRole)
|
||||||
{
|
{
|
||||||
mIdCollection->setData (index.row(), index.column(), value);
|
mIdCollection->setData (index.row(), index.column(), value);
|
||||||
emit dataChanged(index, index);
|
|
||||||
|
|
||||||
// Modifying a value can also change the Modified status of a record.
|
|
||||||
int stateColumn = searchColumnIndex(Columns::ColumnId_Modification);
|
int stateColumn = searchColumnIndex(Columns::ColumnId_Modification);
|
||||||
if (stateColumn != -1)
|
if (stateColumn != -1)
|
||||||
{
|
{
|
||||||
QModelIndex stateIndex = this->index(index.row(), stateColumn);
|
if (index.column() == stateColumn)
|
||||||
emit dataChanged(stateIndex, stateIndex);
|
{
|
||||||
}
|
// modifying the state column can modify other values. we need to tell
|
||||||
|
// views that the whole row has changed.
|
||||||
|
|
||||||
|
emit dataChanged(this->index(index.row(), 0),
|
||||||
|
this->index(index.row(), columnCount(index.parent())));
|
||||||
|
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
emit dataChanged(index, index);
|
||||||
|
|
||||||
|
// Modifying a value can also change the Modified status of a record.
|
||||||
|
QModelIndex stateIndex = this->index(index.row(), stateColumn);
|
||||||
|
emit dataChanged(stateIndex, stateIndex);
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
emit dataChanged(index, index);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -156,4 +156,4 @@ namespace CSMWorld
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user