Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/katedialogs.cpp
Show First 20 Lines • Show All 442 Lines • ▼ Show 20 Line(s) | |||||
443 | KateEditGeneralConfigTab::KateEditGeneralConfigTab(QWidget *parent) | 443 | KateEditGeneralConfigTab::KateEditGeneralConfigTab(QWidget *parent) | ||
444 | : KateConfigPage(parent) | 444 | : KateConfigPage(parent) | ||
445 | { | 445 | { | ||
446 | QVBoxLayout *layout = new QVBoxLayout; | 446 | QVBoxLayout *layout = new QVBoxLayout; | ||
447 | QWidget *newWidget = new QWidget(this); | 447 | QWidget *newWidget = new QWidget(this); | ||
448 | ui = new Ui::EditConfigWidget(); | 448 | ui = new Ui::EditConfigWidget(); | ||
449 | ui->setupUi(newWidget); | 449 | ui->setupUi(newWidget); | ||
450 | 450 | | |||
451 | QList<KateAbstractInputModeFactory *> inputModes = KTextEditor::EditorPrivate::self()->inputModeFactories(); | 451 | const QList<KateAbstractInputModeFactory *> inputModes = KTextEditor::EditorPrivate::self()->inputModeFactories(); | ||
452 | Q_FOREACH(KateAbstractInputModeFactory *fact, inputModes) { | 452 | for (KateAbstractInputModeFactory *fact : inputModes) { | ||
453 | ui->cmbInputMode->addItem(fact->name(), static_cast<int>(fact->inputMode())); | 453 | ui->cmbInputMode->addItem(fact->name(), static_cast<int>(fact->inputMode())); | ||
454 | } | 454 | } | ||
455 | 455 | | |||
456 | // "What's This?" Help is in the ui-files | 456 | // "What's This?" Help is in the ui-files | ||
457 | 457 | | |||
458 | reload(); | 458 | reload(); | ||
459 | 459 | | |||
460 | observeChanges(ui->chkAutoBrackets); | 460 | observeChanges(ui->chkAutoBrackets); | ||
▲ Show 20 Lines • Show All 972 Lines • Show Last 20 Lines |