Changeset View
Changeset View
Standalone View
Standalone View
src/schema/kateschemaconfig.cpp
Show First 20 Lines • Show All 627 Lines • ▼ Show 20 Line(s) | 603 | { | |||
---|---|---|---|---|---|
628 | QPushButton *btnimport = new QPushButton(i18n("Import..."), this); | 628 | QPushButton *btnimport = new QPushButton(i18n("Import..."), this); | ||
629 | headerLayout->addWidget(btnimport); | 629 | headerLayout->addWidget(btnimport); | ||
630 | connect(btnimport, SIGNAL(clicked()), this, SLOT(importHl())); | 630 | connect(btnimport, SIGNAL(clicked()), this, SLOT(importHl())); | ||
631 | 631 | | |||
632 | headerLayout->addStretch(); | 632 | headerLayout->addStretch(); | ||
633 | 633 | | |||
634 | for (const auto &hl : KateHlManager::self()->modeList()) { | 634 | for (const auto &hl : KateHlManager::self()->modeList()) { | ||
635 | if (hl.section().length() > 0) { | 635 | if (hl.section().length() > 0) { | ||
636 | hlCombo->addItem(hl.section() + QLatin1String("/") + hl.translatedName()); | 636 | hlCombo->addItem(hl.section() + QLatin1Char('/') + hl.translatedName()); | ||
637 | } else { | 637 | } else { | ||
638 | hlCombo->addItem(hl.translatedName()); | 638 | hlCombo->addItem(hl.translatedName()); | ||
639 | } | 639 | } | ||
640 | } | 640 | } | ||
641 | hlCombo->setCurrentIndex(0); | 641 | hlCombo->setCurrentIndex(0); | ||
642 | 642 | | |||
643 | // styles listview | 643 | // styles listview | ||
644 | m_styles = new KateStyleTreeWidget(this, true); | 644 | m_styles = new KateStyleTreeWidget(this, true); | ||
▲ Show 20 Lines • Show All 736 Lines • Show Last 20 Lines |