Changeset View
Changeset View
Standalone View
Standalone View
src/prefs/koprefsdialog.cpp
Show First 20 Lines • Show All 243 Lines • ▼ Show 20 Line(s) | 243 | QGroupBox *holidaysGroupBox | |||
---|---|---|---|---|---|
244 | = new QGroupBox(i18nc("@title:group", "Holidays"), regionalPage); | 244 | = new QGroupBox(i18nc("@title:group", "Holidays"), regionalPage); | ||
245 | regionalLayout->addWidget(holidaysGroupBox, 1, 0); | 245 | regionalLayout->addWidget(holidaysGroupBox, 1, 0); | ||
246 | 246 | | |||
247 | QGridLayout *holidaysLayout = new QGridLayout(holidaysGroupBox); | 247 | QGridLayout *holidaysLayout = new QGridLayout(holidaysGroupBox); | ||
248 | 248 | | |||
249 | // holiday region selection | 249 | // holiday region selection | ||
250 | QWidget *holidayRegBox = new QWidget(regionalPage); | 250 | QWidget *holidayRegBox = new QWidget(regionalPage); | ||
251 | QHBoxLayout *holidayRegBoxHBoxLayout = new QHBoxLayout(holidayRegBox); | 251 | QHBoxLayout *holidayRegBoxHBoxLayout = new QHBoxLayout(holidayRegBox); | ||
252 | holidayRegBoxHBoxLayout->setMargin(0); | 252 | holidayRegBoxHBoxLayout->setContentsMargins(0, 0, 0, 0); | ||
253 | holidaysLayout->addWidget(holidayRegBox, 1, 0, 1, 2); | 253 | holidaysLayout->addWidget(holidayRegBox, 1, 0, 1, 2); | ||
254 | 254 | | |||
255 | QLabel *holidayLabel = new QLabel(i18nc("@label", "Use holiday region:"), holidayRegBox); | 255 | QLabel *holidayLabel = new QLabel(i18nc("@label", "Use holiday region:"), holidayRegBox); | ||
256 | holidayLabel->setToolTip(KOPrefs::instance()->holidaysItem()->toolTip()); | 256 | holidayLabel->setToolTip(KOPrefs::instance()->holidaysItem()->toolTip()); | ||
257 | holidayLabel->setWhatsThis(KOPrefs::instance()->holidaysItem()->whatsThis()); | 257 | holidayLabel->setWhatsThis(KOPrefs::instance()->holidaysItem()->whatsThis()); | ||
258 | 258 | | |||
259 | mHolidayCheckCombo = new KPIM::KCheckComboBox(holidayRegBox); | 259 | mHolidayCheckCombo = new KPIM::KCheckComboBox(holidayRegBox); | ||
260 | holidayRegBoxHBoxLayout->addWidget(mHolidayCheckCombo); | 260 | holidayRegBoxHBoxLayout->addWidget(mHolidayCheckCombo); | ||
▲ Show 20 Lines • Show All 780 Lines • ▼ Show 20 Line(s) | 1040 | KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling(QWidget *parent) | |||
1041 | : KPIM::KPrefsModule(KOPrefs::instance(), parent) | 1041 | : KPIM::KPrefsModule(KOPrefs::instance(), parent) | ||
1042 | { | 1042 | { | ||
1043 | QBoxLayout *topTopLayout = new QVBoxLayout(this); | 1043 | QBoxLayout *topTopLayout = new QVBoxLayout(this); | ||
1044 | 1044 | | |||
1045 | QWidget *topFrame = new QWidget(this); | 1045 | QWidget *topFrame = new QWidget(this); | ||
1046 | topTopLayout->addWidget(topFrame); | 1046 | topTopLayout->addWidget(topFrame); | ||
1047 | 1047 | | |||
1048 | QGridLayout *topLayout = new QGridLayout(topFrame); | 1048 | QGridLayout *topLayout = new QGridLayout(topFrame); | ||
1049 | topLayout->setMargin(0); | 1049 | topLayout->setContentsMargins(0, 0, 0, 0); | ||
1050 | 1050 | | |||
1051 | KPIM::KPrefsWidBool *useGroupwareBool | 1051 | KPIM::KPrefsWidBool *useGroupwareBool | ||
1052 | = addWidBool( | 1052 | = addWidBool( | ||
1053 | CalendarSupport::KCalPrefs::instance()->useGroupwareCommunicationItem(), topFrame); | 1053 | CalendarSupport::KCalPrefs::instance()->useGroupwareCommunicationItem(), topFrame); | ||
1054 | topLayout->addWidget(useGroupwareBool->checkBox(), 0, 0, 1, 2); | 1054 | topLayout->addWidget(useGroupwareBool->checkBox(), 0, 0, 1, 2); | ||
1055 | 1055 | | |||
1056 | KPIM::KPrefsWidBool *bcc | 1056 | KPIM::KPrefsWidBool *bcc | ||
1057 | = addWidBool(Akonadi::CalendarSettings::self()->bccItem(), topFrame); | 1057 | = addWidBool(Akonadi::CalendarSettings::self()->bccItem(), topFrame); | ||
▲ Show 20 Lines • Show All 210 Lines • ▼ Show 20 Line(s) | 1254 | { | |||
1268 | policy.setHorizontalStretch(0); | 1268 | policy.setHorizontalStretch(0); | ||
1269 | policy.setVerticalStretch(0); | 1269 | policy.setVerticalStretch(0); | ||
1270 | policy.setHeightForWidth(mDescription->sizePolicy().hasHeightForWidth()); | 1270 | policy.setHeightForWidth(mDescription->sizePolicy().hasHeightForWidth()); | ||
1271 | mDescription->setSizePolicy(policy); | 1271 | mDescription->setSizePolicy(policy); | ||
1272 | topTopLayout->addWidget(mDescription); | 1272 | topTopLayout->addWidget(mDescription); | ||
1273 | 1273 | | |||
1274 | QWidget *buttonRow = new QWidget(this); | 1274 | QWidget *buttonRow = new QWidget(this); | ||
1275 | QBoxLayout *buttonRowLayout = new QHBoxLayout(buttonRow); | 1275 | QBoxLayout *buttonRowLayout = new QHBoxLayout(buttonRow); | ||
1276 | buttonRowLayout->setMargin(0); | 1276 | buttonRowLayout->setContentsMargins(0, 0, 0, 0); | ||
1277 | mConfigureButton = new QPushButton(buttonRow); | 1277 | mConfigureButton = new QPushButton(buttonRow); | ||
1278 | KGuiItem::assign(mConfigureButton, KGuiItem(i18nc("@action:button", "Configure &Plugin..."), | 1278 | KGuiItem::assign(mConfigureButton, KGuiItem(i18nc("@action:button", "Configure &Plugin..."), | ||
1279 | QStringLiteral("configure"), QString(), | 1279 | QStringLiteral("configure"), QString(), | ||
1280 | i18nc("@info:whatsthis", | 1280 | i18nc("@info:whatsthis", | ||
1281 | "This button allows you to configure" | 1281 | "This button allows you to configure" | ||
1282 | " the plugin that you have selected in the list above"))); | 1282 | " the plugin that you have selected in the list above"))); | ||
1283 | buttonRowLayout->addWidget(mConfigureButton); | 1283 | buttonRowLayout->addWidget(mConfigureButton); | ||
1284 | buttonRowLayout->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding)); | 1284 | buttonRowLayout->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding)); | ||
▲ Show 20 Lines • Show All 282 Lines • Show Last 20 Lines |