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

Method removeDep

kdevplatform/project/widgets/dependencieswidget.cpp:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void DependenciesWidget::removeDep()
131{
132 QList<QListWidgetItem*> list = m_ui->dependencies->selectedItems();
133 if( !list.isEmpty() )
134 {
135 Q_ASSERT( list.count() == 1 );
136 int row = m_ui->dependencies->row( list.at(0) );
137 delete m_ui->dependencies->takeItem( row );
138
139 m_ui->dependencies->selectionModel()->select( m_ui->dependencies->model()->index( row - 1, 0, QModelIndex() ), QItemSelectionModel::ClearAndSelect | QItemSelectionModel::SelectCurrent );
140 }
141}
142
143void DependenciesWidget::setDependencies(const QVariantList &deps)
144{

Callers

nothing calls this directly

Calls 9

selectedItemsMethod · 0.80
selectMethod · 0.80
QModelIndexClass · 0.50
isEmptyMethod · 0.45
countMethod · 0.45
rowMethod · 0.45
atMethod · 0.45
indexMethod · 0.45
modelMethod · 0.45

Tested by

no test coverage detected