Commit 164c6a5c authored by Laurent Montel's avatar Laurent Montel 😁

Not necessary to use a private class. Initialize valies

parent 33a06825
......@@ -37,9 +37,7 @@
#include <QTimer>
DateNavigatorContainer::DateNavigatorContainer(QWidget *parent)
: QFrame(parent),
mHorizontalCount(1), mVerticalCount(1),
mIgnoreNavigatorUpdates(false)
: QFrame(parent)
{
mNavigatorView = new KDateNavigator(this);
mNavigatorView->setWhatsThis(
......
......@@ -160,10 +160,10 @@ private:
QList<KDateNavigator *> mExtraViews;
int mHorizontalCount;
int mVerticalCount;
int mHorizontalCount = 1;
int mVerticalCount = 1;
bool mIgnoreNavigatorUpdates;
bool mIgnoreNavigatorUpdates = false;
};
#endif
......@@ -65,12 +65,12 @@ private Q_SLOTS:
private:
void initGUI();
QTreeWidget *mPageView;
QLabel *mPagePreview;
QLabel *mPageDetails;
QPushButton *mDeleteButton;
QPushButton *mImportButton;
QPushButton *mDesignerButton;
QTreeWidget *mPageView = nullptr;
QLabel *mPagePreview = nullptr;
QLabel *mPageDetails = nullptr;
QPushButton *mDeleteButton = nullptr;
QPushButton *mImportButton = nullptr;
QPushButton *mDesignerButton = nullptr;
};
#endif
......@@ -94,7 +94,7 @@ private:
static KOCore *mSelf;
EventViews::CalendarDecoration::Decoration::List mCalendarDecorations;
bool mCalendarDecorationsLoaded;
bool mCalendarDecorationsLoaded = false;
QMap<QWidget *, KXMLGUIClient *> mXMLGUIClients;
};
......
......@@ -24,18 +24,8 @@
#include <KLocalizedString>
class KItemIconCheckCombo::Private
{
public:
Private(ViewType viewType) : mViewType(viewType)
{
}
KItemIconCheckCombo::ViewType mViewType;
};
KItemIconCheckCombo::KItemIconCheckCombo(ViewType viewType, QWidget *parent)
: KPIM::KCheckComboBox(parent), d(new Private(viewType))
: KPIM::KCheckComboBox(parent), mViewType(viewType)
{
addItem(i18n("Calendar's custom icon"));
addItem(QIcon::fromTheme(QStringLiteral("view-calendar-tasks")), i18n("To-do"));
......@@ -62,7 +52,6 @@ KItemIconCheckCombo::KItemIconCheckCombo(ViewType viewType, QWidget *parent)
KItemIconCheckCombo::~KItemIconCheckCombo()
{
delete d;
}
void KItemIconCheckCombo::setCheckedIcons(const QSet<EventViews::EventView::ItemIcon> &icons)
......
......@@ -42,8 +42,7 @@ public:
QSet<EventViews::EventView::ItemIcon> checkedIcons() const;
private:
class Private;
Private *const d;
KItemIconCheckCombo::ViewType mViewType;
};
#endif // KITEMICONCHECKCOMBO_H
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