Commit 241c5b77 authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile

parent 22599237
......@@ -52,9 +52,6 @@ TripModel::TripModel(Akonadi::Monitor *monitor, QObject *parent)
connect(this, SIGNAL(modelReset()), SLOT(thisModelReset()));
QHash<int, QByteArray> roleNames_ = roleNames();
roleNames_.insert(TripRole, "trip");
setRoleNames(roleNames_);
}
QModelIndex TripModel::index(int row, int column, const QModelIndex &parent) const
......@@ -252,3 +249,11 @@ void TripModel::thisRowsRemoved(const QModelIndex &index, int start, int end)
m_trips.clear();
m_tripWidgets.clear();
}
QHash<int, QByteArray> TripModel::roleNames() const
{
QHash<int, QByteArray> roleNames_ = MixedTreeModel::roleNames();
roleNames_.insert(TripRole, "trip");
return roleNames_;
}
......@@ -48,6 +48,7 @@ public:
QModelIndex parent(const QModelIndex &index) const override;
Qt::ItemFlags flags(const QModelIndex &index) const override;
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
QHash<int, QByteArray> roleNames() const override;
private:
Trip *createTrip(const QModelIndex &index, Akonadi::Item::Id id) const;
......
......@@ -24,6 +24,7 @@
#include <QVariant>
#include <QPalette>
#include <QUrl>
#include <QUrlQuery>
#include <MimeTreeParser/BodyPart>
#include <MimeTreeParser/HtmlWriter>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment