MCPcopy Create free account
hub / github.com/KDE/kdevelop / createAction

Function createAction

plugins/openwith/openwithplugin.cpp:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76QAction* createAction(const QString& name, const QString& iconName, QWidget* parent, bool isDefault)
77{
78 auto* action = new QAction(QIcon::fromTheme(iconName), name, parent);
79 if (isDefault) {
80 QFont font = action->font();
81 font.setBold(true);
82 action->setFont(font);
83 }
84 return action;
85}
86} // unnamed namespace
87
88using OpenWithUtils::FileOpener;

Callers 2

actionsForPartsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected