Added Q_OBJECT to TreeModel and some cosmetics

This commit is contained in:
Damjan Adamic
2017-01-27 20:07:00 +01:00
parent cc12601a01
commit f40e64c2aa
4 changed files with 46 additions and 45 deletions
+1
View File
@@ -197,6 +197,7 @@ set(companion_MOC_HDRS
wizarddialog.h wizarddialog.h
modelprinter.h modelprinter.h
multimodelprinter.h multimodelprinter.h
modelslist.h
) )
set(companion_UIS set(companion_UIS
+2 -2
View File
@@ -62,11 +62,11 @@ class TreeItem
class TreeModel : public QAbstractItemModel class TreeModel : public QAbstractItemModel
{ {
// Q_OBJECT Q_OBJECT
public: public:
TreeModel(RadioData * radioData, QObject *parent = 0); TreeModel(RadioData * radioData, QObject *parent = 0);
~TreeModel(); virtual ~TreeModel();
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE; QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation, QVariant headerData(int section, Qt::Orientation orientation,