Changeset View
Changeset View
Standalone View
Standalone View
src/utils/kateautoindent.cpp
Show First 20 Lines • Show All 452 Lines • ▼ Show 20 Line(s) | 429 | { | |||
---|---|---|---|---|---|
453 | scriptIndent(view, position, typedChar); | 453 | scriptIndent(view, position, typedChar); | ||
454 | } | 454 | } | ||
455 | //END KateAutoIndent | 455 | //END KateAutoIndent | ||
456 | 456 | | |||
457 | //BEGIN KateViewIndentAction | 457 | //BEGIN KateViewIndentAction | ||
458 | KateViewIndentationAction::KateViewIndentationAction(KTextEditor::DocumentPrivate *_doc, const QString &text, QObject *parent) | 458 | KateViewIndentationAction::KateViewIndentationAction(KTextEditor::DocumentPrivate *_doc, const QString &text, QObject *parent) | ||
459 | : KActionMenu(text, parent), doc(_doc) | 459 | : KActionMenu(text, parent), doc(_doc) | ||
460 | { | 460 | { | ||
461 | setDelayed(false); | ||||
461 | connect(menu(), SIGNAL(aboutToShow()), this, SLOT(slotAboutToShow())); | 462 | connect(menu(), SIGNAL(aboutToShow()), this, SLOT(slotAboutToShow())); | ||
462 | actionGroup = new QActionGroup(menu()); | 463 | actionGroup = new QActionGroup(menu()); | ||
463 | } | 464 | } | ||
464 | 465 | | |||
465 | void KateViewIndentationAction::slotAboutToShow() | 466 | void KateViewIndentationAction::slotAboutToShow() | ||
466 | { | 467 | { | ||
467 | QStringList modes = KateAutoIndent::listModes(); | 468 | QStringList modes = KateAutoIndent::listModes(); | ||
468 | 469 | | |||
Show All 30 Lines |