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

Method registerToolView

plugins/standardoutputview/standardoutputview.cpp:98–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void StandardOutputView::registerToolView(const QString& toolViewId, const QString& title,
99 KDevelop::IOutputView::ViewType type, const QIcon& icon, Options option,
100 const QList<QAction*>& actionList)
101{
102 if (toolViewId.isEmpty()) {
103 qCWarning(PLUGIN_STANDARDOUTPUTVIEW).nospace()
104 << "registering a view with an empty ID, title " << title << " and type " << type
105 << "; an empty ID is not unique, so expect bugs!";
106 }
107
108 auto& toolView = m_toolViews[toolViewId];
109 if (toolView) {
110 qCDebug(PLUGIN_STANDARDOUTPUTVIEW)
111 << "reusing view" << toolViewId << "for title" << title << "and type" << type;
112 return;
113 }
114 toolView = addToolView(toolViewId, title, type, icon, option, actionList);
115}
116
117ToolViewData* StandardOutputView::addToolView(const QString& toolViewId, const QString& title, ViewType type,
118 const QIcon& icon, Options option, const QList<QAction*>& actionList)

Callers 4

testActionsMethod · 0.45

Calls 1

isEmptyMethod · 0.45

Tested by 4

testActionsMethod · 0.36