MCPcopy Create free account
hub / github.com/KDE/kdiff3 / OptionDialog

Method OptionDialog

src/optiondialog.cpp:480–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478};
479
480OptionDialog::OptionDialog(bool bShowDirMergeSettings, QWidget* parent):
481 KPageDialog(parent)
482{
483 setFaceType(List);
484 setWindowTitle(i18n("Configure"));
485 setStandardButtons(QDialogButtonBox::Help | QDialogButtonBox::RestoreDefaults | QDialogButtonBox::Apply | QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
486
487 setModal(true);
488 setMinimumSize(600, 500);
489
490 gOptions->init();
491 setupFontPage();
492 setupColorPage();
493 setupEditPage();
494 setupDiffPage();
495 setupMergePage();
496
497 if(bShowDirMergeSettings)
498 setupDirectoryMergePage();
499
500 setupRegionalPage();
501 setupIntegrationPage();
502
503 // Initialize all values in the dialog
504 resetToDefaults();
505 slotApply();
506 chk_connect_a(button(QDialogButtonBox::Apply), &QPushButton::clicked, this, &OptionDialog::slotApply);
507 chk_connect_a(button(QDialogButtonBox::Ok), &QPushButton::clicked, this, &OptionDialog::slotOk);
508 chk_connect_a(button(QDialogButtonBox::RestoreDefaults), &QPushButton::clicked, this, &OptionDialog::slotDefault);
509 chk_connect_a(button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &QDialog::reject);
510 chk_connect_a(button(QDialogButtonBox::Help), &QPushButton::clicked, this, &OptionDialog::helpRequested);
511}
512
513void OptionDialog::helpRequested()
514{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected