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

rm unused

parent e8114b12
No related branches found
No related tags found
1 merge request!2387unify code for list views
...@@ -43,17 +43,6 @@ QVariant InstrumentsQModel::data(const QModelIndex& index, int role) const ...@@ -43,17 +43,6 @@ QVariant InstrumentsQModel::data(const QModelIndex& index, int role) const
return {}; return {};
} }
InstrumentItem* InstrumentsQModel::instrumentItemForIndex(const QModelIndex& index) const
{
if (!index.isValid())
return nullptr;
QVector<InstrumentItem*> set = gDoc->instruments()->instrumentItems();
if (index.row() >= 0 && index.row() < set.size())
return set[index.row()];
return nullptr;
}
QModelIndex InstrumentsQModel::addNewGISASInstrument() QModelIndex InstrumentsQModel::addNewGISASInstrument()
{ {
auto* t = new GISASInstrumentItem; auto* t = new GISASInstrumentItem;
......
...@@ -29,8 +29,6 @@ public: ...@@ -29,8 +29,6 @@ public:
int rowCount(const QModelIndex& parent = QModelIndex()) const override; int rowCount(const QModelIndex& parent = QModelIndex()) const override;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
InstrumentItem* instrumentItemForIndex(const QModelIndex& index) const;
QModelIndex addNewGISASInstrument(); QModelIndex addNewGISASInstrument();
QModelIndex addNewOffspecInstrument(); QModelIndex addNewOffspecInstrument();
QModelIndex addNewSpecularInstrument(); QModelIndex addNewSpecularInstrument();
......
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