Commit 6f795cc0 authored by Laurent Montel's avatar Laurent Montel 😁

Restore icon theme

parent 66e54b27
......@@ -67,6 +67,7 @@ IncidenceAttendee::IncidenceAttendee(QWidget *parent, IncidenceDateTime *dateTim
mDataModel = new AttendeeTableModel(attendees, this);
mDataModel->setKeepEmpty(true);
mDataModel->setRemoveEmptyLines(true);
mOldIconName = QIcon::themeName();
QIcon::setThemeName(QStringLiteral("oxygen"));
mRoleDelegate->addItem(QIcon::fromTheme(QStringLiteral("meeting-participant")),
KCalUtils::Stringify::attendeeRole(KCalCore::Attendee::ReqParticipant));
......@@ -168,6 +169,7 @@ IncidenceAttendee::IncidenceAttendee(QWidget *parent, IncidenceDateTime *dateTim
IncidenceAttendee::~IncidenceAttendee()
{
QIcon::setThemeName(mOldIconName);
}
void IncidenceAttendee::load(const KCalCore::Incidence::Ptr &incidence)
......
......@@ -136,6 +136,7 @@ private:
IncidenceDateTime *mDateTime;
QString mOrganizer;
QString mOldIconName;
/** used dataModel to rely on*/
AttendeeTableModel *mDataModel;
......
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