From 856119c5a43b4781b051b93a0713c152cfd99f85 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 15 Apr 2022 13:27:34 +0200 Subject: Make it run with Qt6 This is a huge commit. Changes: * Obviously, make it compile * Make it run (only scarcely tested) * get rid of most of clang's warnings Let's see what surprises are in store... --- mappingtreemodel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mappingtreemodel.h') diff --git a/mappingtreemodel.h b/mappingtreemodel.h index 643bc7d..04ee167 100644 --- a/mappingtreemodel.h +++ b/mappingtreemodel.h @@ -13,10 +13,10 @@ #include #include "smtreemodel.h" +#include "mappingdata.h" class QSqlQuery; class SmTreeItem; -class MappingData; class SmTreeItem; class MappingTreeModel : public SmTreeModel { @@ -42,7 +42,7 @@ class MappingTreeModel : public SmTreeModel { bool renameChild(const QModelIndex &idx, const QString newName); bool deleteChild(const QModelIndex &idx); MappingData mappingDataFromIndex(QModelIndex &idx) const; - MappingData mappingDataFromItem(SmTreeItem *item) const; + const MappingData mappingDataFromItem(SmTreeItem *item) const; QList siblingMappingDataFromId(int id); const QSqlError &lastError() const { return mLastError; } -- cgit v1.2.3-70-g09d2