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

rm slot

parent 33536902
No related branches found
No related tags found
1 merge request!2264InstrumentLibraryDialog (ex ...Editor) now w/o parameter editor
...@@ -175,11 +175,3 @@ void InstrumentLibraryEditor::onInstrumentDescriptionEdited(const QString& t) ...@@ -175,11 +175,3 @@ void InstrumentLibraryEditor::onInstrumentDescriptionEdited(const QString& t)
QModelIndex index = m_treeView->currentIndex(); QModelIndex index = m_treeView->currentIndex();
m_treeModel->setData(index, t, Qt::ToolTipRole); m_treeModel->setData(index, t, Qt::ToolTipRole);
} }
void InstrumentLibraryEditor::onInstrumentChangedByEditor()
{
// uses 'MultiInstrumentNotifier::instrumentChanged' signal to set
// 'InstrumentLibrary:m_modified' flag to true ==> save library on close.
auto* currentInstrument = m_treeModel->itemForIndex(m_treeView->currentIndex());
m_instrumentLibrary->editController()->notifyInstrumentChanged(currentInstrument);
}
...@@ -45,7 +45,6 @@ private: ...@@ -45,7 +45,6 @@ private:
void onInstrumentNameEdited(const QString& newName); void onInstrumentNameEdited(const QString& newName);
void onInstrumentDescriptionEdited(const QString& t); void onInstrumentDescriptionEdited(const QString& t);
void onInstrumentChangedByEditor();
InstrumentLibrary* m_instrumentLibrary; InstrumentLibrary* m_instrumentLibrary;
InstrumentsTreeModel* m_treeModel; InstrumentsTreeModel* m_treeModel;
......
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