mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-frontend-api,UI,docs: Add API to add custom docks with no toggle
Some plugin does that by deleting the QAction returned by obs_frontend_add_dock(). Now that obs_frontend_add_dock() is deprecated, obs_frontend_add_custom_qdock() replace this usage.
This commit is contained in:
@@ -557,6 +557,9 @@ private:
|
||||
QStringList extraDockNames;
|
||||
QList<QSharedPointer<QDockWidget>> extraDocks;
|
||||
|
||||
QStringList extraCustomDockNames;
|
||||
QList<QPointer<QDockWidget>> extraCustomDocks;
|
||||
|
||||
#ifdef BROWSER_AVAILABLE
|
||||
QPointer<QAction> extraBrowserMenuDocksSeparator;
|
||||
|
||||
@@ -972,6 +975,7 @@ public:
|
||||
bool extraBrowser = false);
|
||||
void RemoveDockWidget(const QString &name);
|
||||
bool IsDockObjectNameUsed(const QString &name);
|
||||
void AddCustomDockWidget(QDockWidget *dock);
|
||||
|
||||
static OBSBasic *Get();
|
||||
|
||||
@@ -1205,6 +1209,7 @@ private slots:
|
||||
void ResizeOutputSizeOfSource();
|
||||
|
||||
void RepairOldExtraDockName();
|
||||
void RepairCustomExtraDockName();
|
||||
|
||||
public slots:
|
||||
void on_actionResetTransform_triggered();
|
||||
|
||||
Reference in New Issue
Block a user