MCPcopy Create free account
hub / github.com/KDE/kdevelop / operator()

Method operator()

kdevplatform/shell/sourceformattercontroller.cpp:792–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790 Q_ASSERT(editor);
791 }
792 void operator()(const QString& cmd) {
793 KTextEditor::Command* command = editor->queryCommand( cmd );
794 Q_ASSERT(command);
795 QString msg;
796 qCDebug(SHELL) << "calling" << cmd;
797 const auto views = doc->views();
798 for (KTextEditor::View* view : views) {
799 if (!command->exec(view, cmd, msg))
800 qCWarning(SHELL) << "setting indentation width failed: " << msg;
801 }
802 }
803
804 KTextEditor::Document* doc;
805 KTextEditor::Editor* editor;

Callers

nothing calls this directly

Calls 2

execMethod · 0.80
viewsMethod · 0.45

Tested by

no test coverage detected