1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 17:15:34 +00:00

fixed some function names

This commit is contained in:
Marc Zinnschlag 2014-06-27 10:35:00 +02:00
parent 0c1ad54e68
commit 36c1170d09
4 changed files with 21 additions and 21 deletions

View file

@ -137,7 +137,7 @@ CSVRender::Object::~Object()
mBase->getCreator()->destroySceneNode (mBase); mBase->getCreator()->destroySceneNode (mBase);
} }
bool CSVRender::Object::ReferenceableDataChanged (const QModelIndex& topLeft, bool CSVRender::Object::referenceableDataChanged (const QModelIndex& topLeft,
const QModelIndex& bottomRight) const QModelIndex& bottomRight)
{ {
const CSMWorld::RefIdCollection& referenceables = mData.getReferenceables(); const CSMWorld::RefIdCollection& referenceables = mData.getReferenceables();
@ -154,7 +154,7 @@ bool CSVRender::Object::ReferenceableDataChanged (const QModelIndex& topLeft,
return false; return false;
} }
bool CSVRender::Object::ReferenceableAboutToBeRemoved (const QModelIndex& parent, int start, bool CSVRender::Object::referenceableAboutToBeRemoved (const QModelIndex& parent, int start,
int end) int end)
{ {
const CSMWorld::RefIdCollection& referenceables = mData.getReferenceables(); const CSMWorld::RefIdCollection& referenceables = mData.getReferenceables();
@ -175,7 +175,7 @@ bool CSVRender::Object::ReferenceableAboutToBeRemoved (const QModelIndex& parent
return false; return false;
} }
bool CSVRender::Object::ReferenceDataChanged (const QModelIndex& topLeft, bool CSVRender::Object::referenceDataChanged (const QModelIndex& topLeft,
const QModelIndex& bottomRight) const QModelIndex& bottomRight)
{ {
if (mReferenceId.empty()) if (mReferenceId.empty())

View file

@ -59,16 +59,16 @@ namespace CSVRender
/// \return Did this call result in a modification of the visual representation of /// \return Did this call result in a modification of the visual representation of
/// this object? /// this object?
bool ReferenceableDataChanged (const QModelIndex& topLeft, bool referenceableDataChanged (const QModelIndex& topLeft,
const QModelIndex& bottomRight); const QModelIndex& bottomRight);
/// \return Did this call result in a modification of the visual representation of /// \return Did this call result in a modification of the visual representation of
/// this object? /// this object?
bool ReferenceableAboutToBeRemoved (const QModelIndex& parent, int start, int end); bool referenceableAboutToBeRemoved (const QModelIndex& parent, int start, int end);
/// \return Did this call result in a modification of the visual representation of /// \return Did this call result in a modification of the visual representation of
/// this object? /// this object?
bool ReferenceDataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight); bool referenceDataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight);
/// Returns an empty string if this is a refereceable-type object. /// Returns an empty string if this is a refereceable-type object.
std::string getReferenceId() const; std::string getReferenceId() const;

View file

@ -18,9 +18,9 @@ CSVRender::PreviewWidget::PreviewWidget (CSMWorld::Data& data,
mData.getTableModel (CSMWorld::UniversalId::Type_Referenceables); mData.getTableModel (CSMWorld::UniversalId::Type_Referenceables);
connect (referenceables, SIGNAL (dataChanged (const QModelIndex&, const QModelIndex&)), connect (referenceables, SIGNAL (dataChanged (const QModelIndex&, const QModelIndex&)),
this, SLOT (ReferenceableDataChanged (const QModelIndex&, const QModelIndex&))); this, SLOT (referenceableDataChanged (const QModelIndex&, const QModelIndex&)));
connect (referenceables, SIGNAL (rowsAboutToBeRemoved (const QModelIndex&, int, int)), connect (referenceables, SIGNAL (rowsAboutToBeRemoved (const QModelIndex&, int, int)),
this, SLOT (ReferenceableAboutToBeRemoved (const QModelIndex&, int, int))); this, SLOT (referenceableAboutToBeRemoved (const QModelIndex&, int, int)));
if (!referenceable) if (!referenceable)
{ {
@ -28,23 +28,23 @@ CSVRender::PreviewWidget::PreviewWidget (CSMWorld::Data& data,
mData.getTableModel (CSMWorld::UniversalId::Type_References); mData.getTableModel (CSMWorld::UniversalId::Type_References);
connect (references, SIGNAL (dataChanged (const QModelIndex&, const QModelIndex&)), connect (references, SIGNAL (dataChanged (const QModelIndex&, const QModelIndex&)),
this, SLOT (ReferenceDataChanged (const QModelIndex&, const QModelIndex&))); this, SLOT (referenceDataChanged (const QModelIndex&, const QModelIndex&)));
connect (references, SIGNAL (rowsAboutToBeRemoved (const QModelIndex&, int, int)), connect (references, SIGNAL (rowsAboutToBeRemoved (const QModelIndex&, int, int)),
this, SLOT (ReferenceAboutToBeRemoved (const QModelIndex&, int, int))); this, SLOT (referenceAboutToBeRemoved (const QModelIndex&, int, int)));
} }
} }
void CSVRender::PreviewWidget::ReferenceableDataChanged (const QModelIndex& topLeft, void CSVRender::PreviewWidget::referenceableDataChanged (const QModelIndex& topLeft,
const QModelIndex& bottomRight) const QModelIndex& bottomRight)
{ {
if (mObject.ReferenceableDataChanged (topLeft, bottomRight)) if (mObject.referenceableDataChanged (topLeft, bottomRight))
flagAsModified(); flagAsModified();
} }
void CSVRender::PreviewWidget::ReferenceableAboutToBeRemoved (const QModelIndex& parent, int start, void CSVRender::PreviewWidget::referenceableAboutToBeRemoved (const QModelIndex& parent, int start,
int end) int end)
{ {
if (mObject.ReferenceableAboutToBeRemoved (parent, start, end)) if (mObject.referenceableAboutToBeRemoved (parent, start, end))
flagAsModified(); flagAsModified();
if (mObject.getReferenceableId().empty()) if (mObject.getReferenceableId().empty())
@ -65,10 +65,10 @@ void CSVRender::PreviewWidget::ReferenceableAboutToBeRemoved (const QModelIndex&
} }
} }
void CSVRender::PreviewWidget::ReferenceDataChanged (const QModelIndex& topLeft, void CSVRender::PreviewWidget::referenceDataChanged (const QModelIndex& topLeft,
const QModelIndex& bottomRight) const QModelIndex& bottomRight)
{ {
if (mObject.ReferenceDataChanged (topLeft, bottomRight)) if (mObject.referenceDataChanged (topLeft, bottomRight))
flagAsModified(); flagAsModified();
if (mObject.getReferenceId().empty()) if (mObject.getReferenceId().empty())
@ -86,7 +86,7 @@ void CSVRender::PreviewWidget::ReferenceDataChanged (const QModelIndex& topLeft,
emit referenceableIdChanged (mObject.getReferenceableId()); emit referenceableIdChanged (mObject.getReferenceableId());
} }
void CSVRender::PreviewWidget::ReferenceAboutToBeRemoved (const QModelIndex& parent, int start, void CSVRender::PreviewWidget::referenceAboutToBeRemoved (const QModelIndex& parent, int start,
int end) int end)
{ {
if (mObject.getReferenceId().empty()) if (mObject.getReferenceId().empty())

View file

@ -36,14 +36,14 @@ namespace CSVRender
private slots: private slots:
void ReferenceableDataChanged (const QModelIndex& topLeft, void referenceableDataChanged (const QModelIndex& topLeft,
const QModelIndex& bottomRight); const QModelIndex& bottomRight);
void ReferenceableAboutToBeRemoved (const QModelIndex& parent, int start, int end); void referenceableAboutToBeRemoved (const QModelIndex& parent, int start, int end);
void ReferenceDataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight); void referenceDataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight);
void ReferenceAboutToBeRemoved (const QModelIndex& parent, int start, int end); void referenceAboutToBeRemoved (const QModelIndex& parent, int start, int end);
}; };
} }