Changeset View
Changeset View
Standalone View
Standalone View
src/views/monthview/monthview.cpp
Show All 31 Lines | |||||
32 | #include <QVBoxLayout> | 32 | #include <QVBoxLayout> | ||
33 | 33 | | |||
34 | using namespace KOrg; | 34 | using namespace KOrg; | ||
35 | 35 | | |||
36 | MonthView::MonthView(QWidget *parent) | 36 | MonthView::MonthView(QWidget *parent) | ||
37 | : KOEventView(parent) | 37 | : KOEventView(parent) | ||
38 | { | 38 | { | ||
39 | QVBoxLayout *layout = new QVBoxLayout(this); | 39 | QVBoxLayout *layout = new QVBoxLayout(this); | ||
40 | layout->setMargin(0); | 40 | layout->setContentsMargins(0, 0, 0, 0); | ||
41 | mMonthView = new EventViews::MonthView(EventViews::MonthView::Visible, this); | 41 | mMonthView = new EventViews::MonthView(EventViews::MonthView::Visible, this); | ||
42 | mMonthView->setPreferences(KOPrefs::instance()->eventViewsPreferences()); | 42 | mMonthView->setPreferences(KOPrefs::instance()->eventViewsPreferences()); | ||
43 | layout->addWidget(mMonthView); | 43 | layout->addWidget(mMonthView); | ||
44 | mPopup = eventPopup(); | 44 | mPopup = eventPopup(); | ||
45 | 45 | | |||
46 | connect(mMonthView, &EventViews::MonthView::showIncidencePopupSignal, mPopup, | 46 | connect(mMonthView, &EventViews::MonthView::showIncidencePopupSignal, mPopup, | ||
47 | &KOEventPopupMenu::showIncidencePopup); | 47 | &KOEventPopupMenu::showIncidencePopup); | ||
48 | 48 | | |||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |