MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / msgActionWarning

Function msgActionWarning

src/common/actionmanager/command.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <QTextStream>
11
12static QString msgActionWarning(QAction *newAction, const QString &id, QAction *oldAction)
13{
14 QString msg;
15 QTextStream str(&msg);
16 str << "addOverrideAction " << newAction->objectName() << '/' << newAction->text()
17 << ": Action ";
18 if (oldAction)
19 str << oldAction->objectName() << '/' << oldAction->text();
20 str << " is already registered for context " << id << '.';
21 return msg;
22}
23
24CommandPrivate::CommandPrivate(const QString &id, Command *qq)
25 : q(qq),

Callers 1

addOverrideActionMethod · 0.85

Calls 1

textMethod · 0.45

Tested by

no test coverage detected