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

list entries get never more than 1 line => no more need for repositioning of overlay

parent f39fdccd
No related branches found
No related tags found
1 merge request!2360simplify and unify samples & instruments list code
...@@ -105,13 +105,6 @@ QSize SamplesQListView::sizeHint() const ...@@ -105,13 +105,6 @@ QSize SamplesQListView::sizeHint() const
return s; return s;
} }
void SamplesQListView::onSampleModified()
{
// if length of description changes height of TreeItem, the position of the overlay buttons
// has to be updated -> schedule a re-layout
scheduleDelayedItemsLayout();
}
void SamplesQListView::createNewSample() void SamplesQListView::createNewSample()
{ {
const QModelIndex newIndex = m_model->createSample(); const QModelIndex newIndex = m_model->createSample();
......
...@@ -40,9 +40,6 @@ public: ...@@ -40,9 +40,6 @@ public:
signals: signals:
void currentSampleChanged(SampleItem* current); void currentSampleChanged(SampleItem* current);
public slots:
void onSampleModified();
private: private:
void createNewSample(); void createNewSample();
void createSampleFromLibrary(const QString& classname, const QString& title, void createSampleFromLibrary(const QString& classname, const QString& title,
......
...@@ -110,8 +110,6 @@ SampleView::SampleView() ...@@ -110,8 +110,6 @@ SampleView::SampleView()
connect(editor, &SampleEditor::modified, scriptPanel, &ScriptPanel::onSampleModified); connect(editor, &SampleEditor::modified, scriptPanel, &ScriptPanel::onSampleModified);
connect(editor, &SampleEditor::modified, m_listing, &SamplesQListView::onSampleModified);
connect(editor, &SampleEditor::requestViewInRealspace, this, connect(editor, &SampleEditor::requestViewInRealspace, this,
&SampleView::onRequestViewInRealspace); &SampleView::onRequestViewInRealspace);
......
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