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

Method renameSelected

kdevplatform/shell/launchconfigurationdialog.cpp:207–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void LaunchConfigurationDialog::renameSelected()
208{
209 if( !tree->selectionModel()->selectedRows().isEmpty() )
210 {
211 QModelIndex parent = tree->selectionModel()->selectedRows().first();
212 if( parent.parent().isValid() )
213 {
214 parent = parent.parent();
215 }
216 QModelIndex index = model->index(tree->selectionModel()->selectedRows().first().row(), 0, parent);
217 tree->edit( index );
218 }
219}
220
221QSize LaunchConfigurationDialog::sizeHint() const
222{

Callers

nothing calls this directly

Calls 7

isEmptyMethod · 0.45
firstMethod · 0.45
isValidMethod · 0.45
parentMethod · 0.45
indexMethod · 0.45
rowMethod · 0.45
editMethod · 0.45

Tested by

no test coverage detected