mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-28 21:36:43 +00:00
nicer formatting
This commit is contained in:
parent
40cc108e54
commit
ae418f2538
1 changed files with 9 additions and 5 deletions
|
@ -410,10 +410,10 @@ void CSVWorld::Table::tableSizeUpdate()
|
||||||
|
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case CSMWorld::RecordBase::State_BaseOnly: ++size; break;
|
case CSMWorld::RecordBase::State_BaseOnly: ++size; break;
|
||||||
case CSMWorld::RecordBase::State_Modified: ++size; ++modified; break;
|
case CSMWorld::RecordBase::State_Modified: ++size; ++modified; break;
|
||||||
case CSMWorld::RecordBase::State_ModifiedOnly: ++size; ++modified; break;
|
case CSMWorld::RecordBase::State_ModifiedOnly: ++size; ++modified; break;
|
||||||
case CSMWorld::RecordBase:: State_Deleted: ++deleted; ++modified; break;
|
case CSMWorld::RecordBase:: State_Deleted: ++deleted; ++modified; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -490,10 +490,14 @@ void CSVWorld::Table::dropEvent(QDropEvent *event)
|
||||||
|
|
||||||
if (dynamic_cast<const CSMWorld::TableMimeData*>(event->mimeData())->holdsType(display))
|
if (dynamic_cast<const CSMWorld::TableMimeData*>(event->mimeData())->holdsType(display))
|
||||||
{
|
{
|
||||||
const CSMWorld::TableMimeData* mime = dynamic_cast<const CSMWorld::TableMimeData*> (event->mimeData());
|
const CSMWorld::TableMimeData* mime = dynamic_cast<const CSMWorld::TableMimeData*>
|
||||||
|
(event->mimeData());
|
||||||
|
|
||||||
CSMWorld::UniversalId record (mime->returnMatching (display));
|
CSMWorld::UniversalId record (mime->returnMatching (display));
|
||||||
|
|
||||||
std::auto_ptr<CSMWorld::ModifyCommand> command (new CSMWorld::ModifyCommand
|
std::auto_ptr<CSMWorld::ModifyCommand> command (new CSMWorld::ModifyCommand
|
||||||
(*mProxyModel, index, QVariant (QString::fromStdString (record.getId()))));
|
(*mProxyModel, index, QVariant (QString::fromStdString (record.getId()))));
|
||||||
|
|
||||||
mUndoStack.push (command.release());
|
mUndoStack.push (command.release());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue