Changeset View
Changeset View
Standalone View
Standalone View
addons/kate-ctags/kate_ctags_plugin.cpp
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Line(s) | 121 | { | |||
---|---|---|---|---|---|
124 | 124 | | |||
125 | config.writeEntry("GlobalNumTargets", m_confUi.targetList->count()); | 125 | config.writeEntry("GlobalNumTargets", m_confUi.targetList->count()); | ||
126 | 126 | | |||
127 | QString nr; | 127 | QString nr; | ||
128 | for (int i=0; i<m_confUi.targetList->count(); i++) { | 128 | for (int i=0; i<m_confUi.targetList->count(); i++) { | ||
129 | nr = QStringLiteral("%1").arg(i,3); | 129 | nr = QStringLiteral("%1").arg(i,3); | ||
130 | config.writeEntry(QStringLiteral("GlobalTarget_")+nr, m_confUi.targetList->item(i)->text()); | 130 | config.writeEntry(QStringLiteral("GlobalTarget_")+nr, m_confUi.targetList->item(i)->text()); | ||
131 | } | 131 | } | ||
132 | qWarning() << "Config file:" << config.config()->name(); | ||||
132 | config.sync(); | 133 | config.sync(); | ||
133 | } | 134 | } | ||
134 | 135 | | |||
135 | /******************************************************************/ | 136 | /******************************************************************/ | ||
136 | void KateCTagsConfigPage::reset() | 137 | void KateCTagsConfigPage::reset() | ||
137 | { | 138 | { | ||
138 | KConfigGroup config(KSharedConfig::openConfig(), "CTags"); | 139 | KConfigGroup config(KSharedConfig::openConfig(), "CTags"); | ||
139 | m_confUi.cmdEdit->setText(config.readEntry(QStringLiteral("GlobalCommand"), DEFAULT_CTAGS_CMD)); | 140 | m_confUi.cmdEdit->setText(config.readEntry(QStringLiteral("GlobalCommand"), DEFAULT_CTAGS_CMD)); | ||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |