1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 18:53:54 +00:00

Corrected formatting to follow our standard better.

This commit is contained in:
Marek Kochanowicz 2014-06-17 10:46:54 +02:00
parent d6288a8055
commit bbe7854968

View file

@ -518,17 +518,17 @@ CSVWorld::DialogueSubView::DialogueSubView (const CSMWorld::UniversalId& id, CSM
if(!mBottom->canCreateAndDelete())
{
cloneButton->setDisabled(true);
addButton->setDisabled(true);
deleteButton->setDisabled(true);
cloneButton->setDisabled (true);
addButton->setDisabled (true);
deleteButton->setDisabled (true);
}
dataChanged(mTable->getModelIndex(mCurrentId, 0));
mMainLayout->addLayout(buttonsLayout);
setWidget(mainWidget);
dataChanged(mTable->getModelIndex (mCurrentId, 0));
mMainLayout->addLayout (buttonsLayout);
setWidget (mainWidget);
}
void CSVWorld::DialogueSubView::prevId()
void CSVWorld::DialogueSubView::prevId ()
{
int newRow = mTable->getModelIndex(mCurrentId, 0).row() - 1;
@ -563,7 +563,7 @@ void CSVWorld::DialogueSubView::prevId()
}
}
void CSVWorld::DialogueSubView::nextId()
void CSVWorld::DialogueSubView::nextId ()
{
int newRow = mTable->getModelIndex(mCurrentId, 0).row() + 1;
@ -615,7 +615,7 @@ void CSVWorld::DialogueSubView::setEditLock (bool locked)
}
void CSVWorld::DialogueSubView::dataChanged(const QModelIndex & index)
void CSVWorld::DialogueSubView::dataChanged (const QModelIndex & index)
{
QModelIndex currentIndex(mTable->getModelIndex(mCurrentId, 0));
@ -627,7 +627,7 @@ void CSVWorld::DialogueSubView::dataChanged(const QModelIndex & index)
}
}
void CSVWorld::DialogueSubView::tableMimeDataDropped(QWidget* editor,
void CSVWorld::DialogueSubView::tableMimeDataDropped (QWidget* editor,
const QModelIndex& index,
const CSMWorld::UniversalId& id,
const CSMDoc::Document* document)
@ -662,9 +662,9 @@ void CSVWorld::DialogueSubView::showPreview ()
}
}
void CSVWorld::DialogueSubView::viewRecord()
void CSVWorld::DialogueSubView::viewRecord ()
{
QModelIndex currentIndex(mTable->getModelIndex(mCurrentId, 0));
QModelIndex currentIndex(mTable->getModelIndex (mCurrentId, 0));
if (currentIndex.isValid() &&
currentIndex.row() < mTable->rowCount())
@ -676,7 +676,7 @@ void CSVWorld::DialogueSubView::viewRecord()
}
}
void CSVWorld::DialogueSubView::changeCurrentId(const std::string& newId)
void CSVWorld::DialogueSubView::changeCurrentId (const std::string& newId)
{
std::vector<std::string> selection;
mCurrentId = std::string(newId);