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

Method slotActivated

plugins/projectmanagerview/projecttreeview.cpp:267–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void ProjectTreeView::slotActivated( const QModelIndex &index )
268{
269 if ( QApplication::keyboardModifiers() & Qt::CTRL || QApplication::keyboardModifiers() & Qt::SHIFT ) {
270 // Do not open file when Ctrl or Shift is pressed; that's for selection
271 return;
272 }
273 auto *item = index.data(ProjectModel::ProjectItemRole).value<ProjectBaseItem*>();
274 if ( item && item->file() )
275 {
276 emit activate( item->file()->path() );
277 }
278}
279
280void ProjectTreeView::projectClosed(KDevelop::IProject* project)
281{

Callers

nothing calls this directly

Calls 3

dataMethod · 0.45
fileMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected