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

Function addNewToolViewByDoubleClick

kdevplatform/shell/uicontroller.cpp:211–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210private Q_SLOTS:
211 void addNewToolViewByDoubleClick(const QModelIndex& index)
212 {
213 QListWidgetItem *item = itemFromIndex(index);
214 // Disable item so that the tool view can not be added again.
215 item->setFlags(item->flags() & ~Qt::ItemIsEnabled);
216 emit addNewToolView(m_mw, item);
217 }
218
219private:
220 MainWindow* const m_mw;

Callers

nothing calls this directly

Calls 2

setFlagsMethod · 0.80
flagsMethod · 0.45

Tested by

no test coverage detected