diff --git a/include/AutomationEditor.h b/include/AutomationEditor.h index 0fc5057276..c83d8c671b 100644 --- a/include/AutomationEditor.h +++ b/include/AutomationEditor.h @@ -33,6 +33,7 @@ #include "ComboBoxModel.h" #include "Editor.h" #include "JournallingObject.h" +#include "MidiClip.h" #include "SampleClip.h" #include "TimePos.h" #include "LmmsTypes.h" @@ -43,9 +44,6 @@ class QScrollBar; namespace lmms { - -class MidiClip; - namespace gui { @@ -232,8 +230,9 @@ private: float m_bottomLevel; float m_topLevel; - MidiClip* m_ghostNotes = nullptr; - QPointer m_ghostSample = nullptr; // QPointer to set to nullptr on deletion + // QPointers to set to nullptr on deletion + QPointer m_ghostNotes = nullptr; + QPointer m_ghostSample = nullptr; bool m_renderSample = false; void centerTopBottomScroll();