mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 17:16:00 -05:00
Move vertical / horizontal control handling to macro segment
This commit is contained in:
@@ -11,16 +11,11 @@ class MacroEntryControls : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MacroEntryControls(const int animationDuration = 300,
|
||||
explicit MacroEntryControls(bool vertical = false,
|
||||
const int animationDuration = 300,
|
||||
QWidget *parent = 0);
|
||||
|
||||
void Show(bool visible = true);
|
||||
|
||||
QPushButton *GetUp() { return _up; }
|
||||
QPushButton *GetDown() { return _down; }
|
||||
QPushButton *GetAdd() { return _add; }
|
||||
QPushButton *GetRemove() { return _remove; }
|
||||
|
||||
signals:
|
||||
void Add();
|
||||
void Remove();
|
||||
@@ -28,6 +23,7 @@ signals:
|
||||
void Down();
|
||||
|
||||
private:
|
||||
bool _vertical = false;
|
||||
bool _visible = false;
|
||||
QPushButton *_add;
|
||||
QPushButton *_remove;
|
||||
|
||||
@@ -34,7 +34,8 @@ class MacroSegmentEdit : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MacroSegmentEdit(QWidget *parent = nullptr);
|
||||
MacroSegmentEdit(bool verticalControls = true,
|
||||
QWidget *parent = nullptr);
|
||||
// Use this function to avoid accidental edits when scrolling through
|
||||
// list of actions and conditions
|
||||
void SetFocusPolicyOfWidgets();
|
||||
|
||||
Reference in New Issue
Block a user