Skip to content
Snippets Groups Projects
Commit bbb3f728 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm selection signals from InstrumentsQListView

parent 7cece7ab
No related branches found
No related tags found
1 merge request!2387unify code for list views
......@@ -77,26 +77,22 @@ QSize InstrumentsQListView::minimumSizeHint() const
void InstrumentsQListView::onNewGisas()
{
QModelIndex idx = m_model->addNewGISASInstrument();
selectionModel()->select(idx, QItemSelectionModel::ClearAndSelect);
m_model->addNewGISASInstrument();
}
void InstrumentsQListView::onNewOffspec()
{
QModelIndex idx = m_model->addNewOffspecInstrument();
selectionModel()->select(idx, QItemSelectionModel::ClearAndSelect);
m_model->addNewOffspecInstrument();
}
void InstrumentsQListView::onNewSpecular()
{
QModelIndex idx = m_model->addNewSpecularInstrument();
selectionModel()->select(idx, QItemSelectionModel::ClearAndSelect);
m_model->addNewSpecularInstrument();
}
void InstrumentsQListView::onNewDepthprobe()
{
QModelIndex idx = m_model->addNewDepthprobeInstrument();
selectionModel()->select(idx, QItemSelectionModel::ClearAndSelect);
m_model->addNewDepthprobeInstrument();
}
//! Removes currently selected instrument.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment