Changeset View
Changeset View
Standalone View
Standalone View
src/kontactplugin/specialdates/sdsummarywidget.cpp
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 114 | SDSummaryWidget::SDSummaryWidget(KontactInterface::Plugin *plugin, QWidget *parent) | |||
---|---|---|---|---|---|
115 | : KontactInterface::Summary(parent) | 115 | : KontactInterface::Summary(parent) | ||
116 | , mPlugin(plugin) | 116 | , mPlugin(plugin) | ||
117 | , mHolidays(nullptr) | 117 | , mHolidays(nullptr) | ||
118 | { | 118 | { | ||
119 | mCalendar = CalendarSupport::calendarSingleton(); | 119 | mCalendar = CalendarSupport::calendarSingleton(); | ||
120 | // Create the Summary Layout | 120 | // Create the Summary Layout | ||
121 | QVBoxLayout *mainLayout = new QVBoxLayout(this); | 121 | QVBoxLayout *mainLayout = new QVBoxLayout(this); | ||
122 | mainLayout->setSpacing(3); | 122 | mainLayout->setSpacing(3); | ||
123 | mainLayout->setMargin(3); | 123 | mainLayout->setContentsMargins(3, 3, 3, 3); | ||
124 | 124 | | |||
125 | QWidget *header = createHeader(this, | 125 | QWidget *header = createHeader(this, | ||
126 | QStringLiteral("view-calendar-special-occasion"), | 126 | QStringLiteral("view-calendar-special-occasion"), | ||
127 | i18n("Upcoming Special Dates")); | 127 | i18n("Upcoming Special Dates")); | ||
128 | mainLayout->addWidget(header); | 128 | mainLayout->addWidget(header); | ||
129 | 129 | | |||
130 | mLayout = new QGridLayout(); | 130 | mLayout = new QGridLayout(); | ||
131 | mainLayout->addItem(mLayout); | 131 | mainLayout->addItem(mLayout); | ||
▲ Show 20 Lines • Show All 627 Lines • Show Last 20 Lines |