MCPcopy Create free account
hub / github.com/LMMS/lmms / updateSelection

Method updateSelection

src/gui/EffectSelectDialog.cpp:264–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262
263
264void EffectSelectDialog::updateSelection()
265{
266 // no valid selection anymore due to changed filter?
267 if( ui->pluginList->selectionModel()->selection().size() <= 0 )
268 {
269 // then select our first item
270 ui->pluginList->selectionModel()->select( m_model.index( 0, 0 ),
271 QItemSelectionModel::ClearAndSelect
272 | QItemSelectionModel::Rows );
273 rowChanged( m_model.index( 0, 0 ), QModelIndex() );
274 }
275}
276
277
278

Callers

nothing calls this directly

Calls 2

indexMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected