diff --git a/src/attendeetablemodel.h b/src/attendeetablemodel.h --- a/src/attendeetablemodel.h +++ b/src/attendeetablemodel.h @@ -55,7 +55,7 @@ Tentative }; - explicit AttendeeTableModel(const KCalCore::Attendee::List &resources, QObject *parent = nullptr); + explicit AttendeeTableModel(QObject *parent = nullptr); Q_REQUIRED_RESULT int rowCount(const QModelIndex &parent = QModelIndex()) const override; Q_REQUIRED_RESULT int columnCount(const QModelIndex &parent = QModelIndex()) const override; diff --git a/src/attendeetablemodel.cpp b/src/attendeetablemodel.cpp --- a/src/attendeetablemodel.cpp +++ b/src/attendeetablemodel.cpp @@ -26,9 +26,8 @@ using namespace IncidenceEditorNG; -AttendeeTableModel::AttendeeTableModel(const KCalCore::Attendee::List &attendees, QObject *parent) +AttendeeTableModel::AttendeeTableModel(QObject *parent) : QAbstractTableModel(parent) - , mAttendeeList(attendees) , mKeepEmpty(false) , mRemoveEmptyLines(false) { diff --git a/src/incidenceattendee.cpp b/src/incidenceattendee.cpp --- a/src/incidenceattendee.cpp +++ b/src/incidenceattendee.cpp @@ -59,10 +59,7 @@ , mRoleDelegate(new AttendeeComboBoxDelegate(this)) , mResponseDelegate(new AttendeeComboBoxDelegate(this)) { - KCalCore::Attendee::List attendees; - KCalCore::Attendee::Ptr attendee(new KCalCore::Attendee(QLatin1String(""), QLatin1String(""))); - attendees.append(attendee); - mDataModel = new AttendeeTableModel(attendees, this); + mDataModel = new AttendeeTableModel(this); mDataModel->setKeepEmpty(true); mDataModel->setRemoveEmptyLines(true); mRoleDelegate->addItem(QIcon::fromTheme(QStringLiteral(":/meeting-participant.png")),