mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 10:06:40 +00:00
change universalid of base subview after pressing next or prev
This commit is contained in:
parent
cb9bcc3cc1
commit
2e226e63b6
3 changed files with 13 additions and 1 deletions
|
@ -18,4 +18,10 @@ void CSVDoc::SubView::updateEditorSetting (const QString &settingName, const QSt
|
||||||
|
|
||||||
void CSVDoc::SubView::setStatusBar (bool show) {}
|
void CSVDoc::SubView::setStatusBar (bool show) {}
|
||||||
|
|
||||||
void CSVDoc::SubView::useHint (const std::string& hint) {}
|
void CSVDoc::SubView::useHint (const std::string& hint) {}
|
||||||
|
|
||||||
|
void CSVDoc::SubView::setUniversalId (const CSMWorld::UniversalId& id)
|
||||||
|
{
|
||||||
|
mUniversalId = id;
|
||||||
|
setWindowTitle (mUniversalId.toString().c_str());
|
||||||
|
}
|
|
@ -27,6 +27,8 @@ namespace CSVDoc
|
||||||
// not implemented
|
// not implemented
|
||||||
SubView (const SubView&);
|
SubView (const SubView&);
|
||||||
SubView& operator= (SubView&);
|
SubView& operator= (SubView&);
|
||||||
|
protected:
|
||||||
|
void setUniversalId(const CSMWorld::UniversalId& id);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
|
@ -391,6 +391,8 @@ void CSVWorld::DialogueSubView::prevId()
|
||||||
}
|
}
|
||||||
|
|
||||||
mEditWidget->remake(newRow);
|
mEditWidget->remake(newRow);
|
||||||
|
setUniversalId(CSMWorld::UniversalId (static_cast<CSMWorld::UniversalId::Type> (mTable->data (mTable->index (newRow, 2)).toInt()),
|
||||||
|
mTable->data (mTable->index (newRow, 0)).toString().toStdString()));
|
||||||
mRow = newRow;
|
mRow = newRow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -410,6 +412,8 @@ void CSVWorld::DialogueSubView::nextId()
|
||||||
}
|
}
|
||||||
|
|
||||||
mEditWidget->remake(newRow);
|
mEditWidget->remake(newRow);
|
||||||
|
setUniversalId(CSMWorld::UniversalId (static_cast<CSMWorld::UniversalId::Type> (mTable->data (mTable->index (newRow, 2)).toInt()),
|
||||||
|
mTable->data (mTable->index (newRow, 0)).toString().toStdString()));
|
||||||
mRow = newRow;
|
mRow = newRow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue