Commit 7bdce0f3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Modernize code

parent bc261bea
Pipeline #33537 passed with stage
in 22 minutes and 55 seconds
......@@ -58,8 +58,6 @@ AgendaItem::AgendaItem(EventView *eventView, const MultiViewCalendar::Ptr &calen
, mCalendar(calendar)
, mIncidence(item)
, mOccurrenceDateTime(qd)
, mValid(true)
, mCloned(false)
, mSelected(isSelected)
, mSpecialEvent(false)
{
......
......@@ -278,9 +278,14 @@ private:
bool mCloned = false;
QString mLabelText;
bool mSelected;
bool mIconAlarm, mIconRecur, mIconReadonly;
bool mIconReply, mIconGroup, mIconGroupTent;
bool mIconOrganizer, mSpecialEvent;
bool mIconAlarm;
bool mIconRecur;
bool mIconReadonly;
bool mIconReply;
bool mIconGroup;
bool mIconGroupTent;
bool mIconOrganizer;
bool mSpecialEvent;
// For incidences that expand through more than 1 day
// Will be 1 for single day incidences
......
......@@ -62,8 +62,7 @@ class Q_DECL_HIDDEN EventIndicator::Private
public:
Private(EventIndicator *parent, EventIndicator::Location loc)
: mColumns(1)
, mLocation(loc)
: mLocation(loc)
, q(parent)
{
mEnabled.resize(mColumns);
......
......@@ -36,7 +36,9 @@ protected:
void resizeEvent(QResizeEvent *) override;
virtual void squeezeTextToLabel();
bool mTextTypeFixed = false;
QString mShortText, mLongText, mExtensiveText;
const QString mShortText;
const QString mLongText;
QString mExtensiveText;
private:
int getIndent() const;
......
......@@ -42,7 +42,9 @@ protected:
virtual void squeezeContentsToLabel();
bool mAutomaticSqueeze = true;
EventViews::CalendarDecoration::Element *mDecorationElement = nullptr;
QString mShortText, mLongText, mExtensiveText;
QString mShortText;
QString mLongText;
QString mExtensiveText;
QPixmap mPixmap;
QUrl mUrl;
};
......
......@@ -71,7 +71,7 @@ public:
bool operator<(const QTreeWidgetItem &other) const override;
const QTreeWidget *mTreeWidget = nullptr;
QTreeWidget *const mTreeWidget;
const Akonadi::Item mIncidence;
QDateTime start;
QDateTime end;
......
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