diff options
author | Arno <arno@disconnect.de> | 2022-04-15 13:27:34 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2022-04-15 13:27:34 +0200 |
commit | 856119c5a43b4781b051b93a0713c152cfd99f85 (patch) | |
tree | 4e2fde4e7a76179cc243e0665091c6ad429ea640 /mappingtreemodel.h | |
parent | 62d3ca1482b202d2883eeb5e17e72300e8612477 (diff) | |
download | SheMov-856119c5a43b4781b051b93a0713c152cfd99f85.tar.gz SheMov-856119c5a43b4781b051b93a0713c152cfd99f85.tar.bz2 SheMov-856119c5a43b4781b051b93a0713c152cfd99f85.zip |
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...
Diffstat (limited to 'mappingtreemodel.h')
-rw-r--r-- | mappingtreemodel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mappingtreemodel.h b/mappingtreemodel.h index 643bc7d..04ee167 100644 --- a/mappingtreemodel.h +++ b/mappingtreemodel.h @@ -13,10 +13,10 @@ #include <QMetaType> #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<MappingData> siblingMappingDataFromId(int id); const QSqlError &lastError() const { return mLastError; } |