summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 25deca094..01a3c33b3 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -191,7 +191,7 @@ void CylindersModel::passInData(const QModelIndex &index, const QVariant &value)
/* Has the string value changed */
#define CHANGED() \
- (vString = value.toString()) != data(index, role).toString()
+ (vString = value.toString()) != data(index, role).toString()
bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, int role)
{
@@ -934,8 +934,7 @@ bool TreeItem::setData(const QModelIndex &index, const QVariant &value, int role
return false;
}
-QModelIndex TreeModel::index(int row, int column, const QModelIndex &parent)
- const
+QModelIndex TreeModel::index(int row, int column, const QModelIndex &parent) const
{
if (!hasIndex(row, column, parent))
return QModelIndex();