00001 #ifndef DATAITEM_H
00002 #define DATAITEM_H
00003
00004 #include <QString>
00005 #include <QVector>
00006 #include "DataItemPart.h"
00007
00011 struct DataItem
00012 {
00013 QString label;
00014 QVector<DataItemPart> data;
00015
00016 bool operator<(const DataItem& other) const {
00017 if (this->data.isEmpty() && !other.data.isEmpty()) {return true;}
00018 if (!this->data.isEmpty() && other.data.isEmpty()) {return false;}
00019 if (this->data.isEmpty() && other.data.isEmpty()) {return false;}
00020 if (this->data.at(0) < other.data.at(0)) {return true;} else {return false;}
00021 }
00022 };
00023
00024 #endif