Changeset View
Changeset View
Standalone View
Standalone View
src/view/katestatusbar.cpp
Show First 20 Lines • Show All 242 Lines • ▼ Show 20 Line(s) | 223 | { | |||
---|---|---|---|---|---|
243 | showWords->setCheckable(true); | 243 | showWords->setCheckable(true); | ||
244 | showWords->setChecked(KateViewConfig::global()->showWordCount()); | 244 | showWords->setChecked(KateViewConfig::global()->showWordCount()); | ||
245 | menu.exec(event->globalPos()); | 245 | menu.exec(event->globalPos()); | ||
246 | 246 | | |||
247 | } | 247 | } | ||
248 | 248 | | |||
249 | void KateStatusBar::toggleShowLines(bool checked) | 249 | void KateStatusBar::toggleShowLines(bool checked) | ||
250 | { | 250 | { | ||
251 | KateViewConfig::global()->setShowLineCount(checked); | 251 | KateViewConfig::global()->setValue(KateViewConfig::ShowLineCount, checked); | ||
252 | } | 252 | } | ||
253 | 253 | | |||
254 | void KateStatusBar::toggleShowWords(bool checked) | 254 | void KateStatusBar::toggleShowWords(bool checked) | ||
255 | { | 255 | { | ||
256 | KateViewConfig::global()->setShowWordCount(checked); | 256 | KateViewConfig::global()->setShowWordCount(checked); | ||
257 | } | 257 | } | ||
258 | 258 | | |||
259 | void KateStatusBar::updateStatus() | 259 | void KateStatusBar::updateStatus() | ||
▲ Show 20 Lines • Show All 323 Lines • Show Last 20 Lines |