mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-08 09:36:07 -05:00
Delay show and hide of macro controls
This commit is contained in:
@@ -23,6 +23,7 @@ signals:
|
||||
void Down();
|
||||
|
||||
private:
|
||||
bool _visible = false;
|
||||
QPushButton *_add;
|
||||
QPushButton *_remove;
|
||||
QPushButton *_up;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include <QWidget>
|
||||
#include <QTimer>
|
||||
#include <obs.hpp>
|
||||
|
||||
class Macro;
|
||||
@@ -46,6 +47,8 @@ protected slots:
|
||||
void Up();
|
||||
void Down();
|
||||
void Collapsed(bool);
|
||||
void ShowControls();
|
||||
void HideControls();
|
||||
signals:
|
||||
void MacroAdded(const QString &name);
|
||||
void MacroRemoved(const QString &name);
|
||||
@@ -67,6 +70,8 @@ protected:
|
||||
MacroEntryControls *_controls;
|
||||
|
||||
private:
|
||||
QTimer _enterTimer;
|
||||
QTimer _leaveTimer;
|
||||
virtual MacroSegment *Data() = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user