| 205 | } |
| 206 | |
| 207 | void 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 | |
| 221 | QSize LaunchConfigurationDialog::sizeHint() const |
| 222 | { |