diff options
author | Arno <arno@disconnect.de> | 2018-07-20 14:34:45 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-07-20 14:40:30 +0200 |
commit | 6baa7366f20eabac32c3d84ae9832e517f5e0400 (patch) | |
tree | ae26564ebcf7139ad335025d3e757a29eb847629 /mappingdata.h | |
parent | 83873855d4f4d3042b50e521029c902bc5e05893 (diff) | |
download | SheMov-6baa7366f20eabac32c3d84ae9832e517f5e0400.tar.gz SheMov-6baa7366f20eabac32c3d84ae9832e517f5e0400.tar.bz2 SheMov-6baa7366f20eabac32c3d84ae9832e517f5e0400.zip |
More code churn
Create separate files for MappingData and MappingTreeResultModel.
Hopefully no functional changes.
Diffstat (limited to 'mappingdata.h')
-rw-r--r-- | mappingdata.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mappingdata.h b/mappingdata.h new file mode 100644 index 0000000..f76932b --- /dev/null +++ b/mappingdata.h @@ -0,0 +1,32 @@ +/* + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version + 2 of the License, or (at your option) any later version. +*/ + +#ifndef MAPPINGDATA_H +#define MAPPINGDATA_H + +#include <QMetaType> +#include <QString> +#include <QList> + +struct MappingData { + MappingData(); + bool operator==(const MappingData &other); + //QDataStream &operator<<(QDataStream &out, const MappingData &d); + bool isValid(); + int mappingId; + int descId; + QString name; + QList<int> parents; + QStringList path; +}; + +QDataStream &operator<<(QDataStream &out, const MappingData &d); +QDataStream &operator>>(QDataStream &in, MappingData &v); + +Q_DECLARE_METATYPE(MappingData) + +#endif // MAPPINGDATA_H |