diff --git a/apps/opencs/view/render/object.cpp b/apps/opencs/view/render/object.cpp index 6fa7e7707..59cfd965d 100644 --- a/apps/opencs/view/render/object.cpp +++ b/apps/opencs/view/render/object.cpp @@ -137,7 +137,7 @@ CSVRender::Object::~Object() mBase->getCreator()->destroySceneNode (mBase); } -bool CSVRender::Object::ReferenceableDataChanged (const QModelIndex& topLeft, +bool CSVRender::Object::referenceableDataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight) { const CSMWorld::RefIdCollection& referenceables = mData.getReferenceables(); @@ -154,7 +154,7 @@ bool CSVRender::Object::ReferenceableDataChanged (const QModelIndex& topLeft, return false; } -bool CSVRender::Object::ReferenceableAboutToBeRemoved (const QModelIndex& parent, int start, +bool CSVRender::Object::referenceableAboutToBeRemoved (const QModelIndex& parent, int start, int end) { const CSMWorld::RefIdCollection& referenceables = mData.getReferenceables(); @@ -175,7 +175,7 @@ bool CSVRender::Object::ReferenceableAboutToBeRemoved (const QModelIndex& parent return false; } -bool CSVRender::Object::ReferenceDataChanged (const QModelIndex& topLeft, +bool CSVRender::Object::referenceDataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight) { if (mReferenceId.empty()) diff --git a/apps/opencs/view/render/object.hpp b/apps/opencs/view/render/object.hpp index d4089307f..df39d7393 100644 --- a/apps/opencs/view/render/object.hpp +++ b/apps/opencs/view/render/object.hpp @@ -59,16 +59,16 @@ namespace CSVRender /// \return Did this call result in a modification of the visual representation of /// this object? - bool ReferenceableDataChanged (const QModelIndex& topLeft, + bool referenceableDataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight); /// \return Did this call result in a modification of the visual representation of /// 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 /// 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. std::string getReferenceId() const; diff --git a/apps/opencs/view/render/previewwidget.cpp b/apps/opencs/view/render/previewwidget.cpp index ccc6e4acf..76e9971dd 100644 --- a/apps/opencs/view/render/previewwidget.cpp +++ b/apps/opencs/view/render/previewwidget.cpp @@ -18,9 +18,9 @@ CSVRender::PreviewWidget::PreviewWidget (CSMWorld::Data& data, mData.getTableModel (CSMWorld::UniversalId::Type_Referenceables); 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)), - this, SLOT (ReferenceableAboutToBeRemoved (const QModelIndex&, int, int))); + this, SLOT (referenceableAboutToBeRemoved (const QModelIndex&, int, int))); if (!referenceable) { @@ -28,23 +28,23 @@ CSVRender::PreviewWidget::PreviewWidget (CSMWorld::Data& data, mData.getTableModel (CSMWorld::UniversalId::Type_References); 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)), - 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) { - if (mObject.ReferenceableDataChanged (topLeft, bottomRight)) + if (mObject.referenceableDataChanged (topLeft, bottomRight)) flagAsModified(); } -void CSVRender::PreviewWidget::ReferenceableAboutToBeRemoved (const QModelIndex& parent, int start, +void CSVRender::PreviewWidget::referenceableAboutToBeRemoved (const QModelIndex& parent, int start, int end) { - if (mObject.ReferenceableAboutToBeRemoved (parent, start, end)) + if (mObject.referenceableAboutToBeRemoved (parent, start, end)) flagAsModified(); 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) { - if (mObject.ReferenceDataChanged (topLeft, bottomRight)) + if (mObject.referenceDataChanged (topLeft, bottomRight)) flagAsModified(); if (mObject.getReferenceId().empty()) @@ -86,7 +86,7 @@ void CSVRender::PreviewWidget::ReferenceDataChanged (const QModelIndex& topLeft, emit referenceableIdChanged (mObject.getReferenceableId()); } -void CSVRender::PreviewWidget::ReferenceAboutToBeRemoved (const QModelIndex& parent, int start, +void CSVRender::PreviewWidget::referenceAboutToBeRemoved (const QModelIndex& parent, int start, int end) { if (mObject.getReferenceId().empty()) diff --git a/apps/opencs/view/render/previewwidget.hpp b/apps/opencs/view/render/previewwidget.hpp index 09cb19dc7..dd6a99c0f 100644 --- a/apps/opencs/view/render/previewwidget.hpp +++ b/apps/opencs/view/render/previewwidget.hpp @@ -36,14 +36,14 @@ namespace CSVRender private slots: - void ReferenceableDataChanged (const QModelIndex& topLeft, + void referenceableDataChanged (const QModelIndex& topLeft, 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); }; }