mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Fix merge issues.
This commit is contained in:
parent
2612a91f8d
commit
6542ff111d
1 changed files with 27 additions and 4 deletions
|
@ -709,6 +709,30 @@ void CSVWorld::SimpleDialogueSubView::changeCurrentId (const std::string& newId)
|
||||||
mCommandDispatcher.setSelection(selection);
|
mCommandDispatcher.setSelection(selection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSVWorld::SimpleDialogueSubView::refreshNpcDialogue (int type, const std::string& id)
|
||||||
|
{
|
||||||
|
int typeColumn = mTable->findColumnIndex (CSMWorld::Columns::ColumnId_RecordType);
|
||||||
|
if (CSMWorld::UniversalId::Type_Npc
|
||||||
|
!= mTable->data(mTable->getModelIndex(mCurrentId, typeColumn), Qt::DisplayRole).toInt())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
int raceColumn = mTable->findColumnIndex (CSMWorld::Columns::ColumnId_Race);
|
||||||
|
int classColumn = mTable->findColumnIndex (CSMWorld::Columns::ColumnId_Class);
|
||||||
|
|
||||||
|
if ((type == 0/*FIXME*/ && id == "") // skill or gmst changed
|
||||||
|
|| (id == mTable->data(mTable->getModelIndex(mCurrentId, raceColumn),
|
||||||
|
Qt::DisplayRole).toString().toUtf8().constData()) // race
|
||||||
|
|| (id == mTable->data(mTable->getModelIndex(mCurrentId, classColumn),
|
||||||
|
Qt::DisplayRole).toString().toUtf8().constData())) // class
|
||||||
|
{
|
||||||
|
int y = mEditWidget->verticalScrollBar()->value();
|
||||||
|
mEditWidget->remake (mTable->getModelIndex(mCurrentId, 0).row());
|
||||||
|
mEditWidget->verticalScrollBar()->setValue(y);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CSVWorld::DialogueSubView::DialogueSubView (const CSMWorld::UniversalId& id,
|
CSVWorld::DialogueSubView::DialogueSubView (const CSMWorld::UniversalId& id,
|
||||||
CSMDoc::Document& document, const CreatorFactoryBase& creatorFactory, bool sorting)
|
CSMDoc::Document& document, const CreatorFactoryBase& creatorFactory, bool sorting)
|
||||||
: SimpleDialogueSubView (id, document)
|
: SimpleDialogueSubView (id, document)
|
||||||
|
@ -864,7 +888,6 @@ void CSVWorld::DialogueSubView::nextId ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CSVWorld::DialogueSubView::showPreview ()
|
void CSVWorld::DialogueSubView::showPreview ()
|
||||||
{
|
{
|
||||||
QModelIndex currentIndex (getTable().getModelIndex (getCurrentId(), 0));
|
QModelIndex currentIndex (getTable().getModelIndex (getCurrentId(), 0));
|
||||||
|
|
Loading…
Reference in a new issue