Draggable effects (#6648)
Reorder effects in Mixer with the mouse via click and drag
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "PluginView.h"
|
||||
#include "Effect.h"
|
||||
|
||||
class QGraphicsOpacityEffect;
|
||||
class QGroupBox;
|
||||
class QLabel;
|
||||
class QPushButton;
|
||||
@@ -61,6 +62,11 @@ public:
|
||||
}
|
||||
|
||||
static constexpr int DEFAULT_WIDTH = 215;
|
||||
static constexpr int DEFAULT_HEIGHT = 60;
|
||||
|
||||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
|
||||
public slots:
|
||||
void editControls();
|
||||
@@ -90,6 +96,9 @@ private:
|
||||
Knob * m_gate;
|
||||
QMdiSubWindow * m_subWindow;
|
||||
EffectControlDialog * m_controlView;
|
||||
|
||||
bool m_dragging;
|
||||
QGraphicsOpacityEffect* m_opacityEffect;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user