Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions frontend/docks/OBSDock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@

#include "moc_OBSDock.cpp"

OBSDock::OBSDock(QWidget *parent) : QDockWidget(parent)
{
this->setAttribute(Qt::WA_MacAlwaysShowToolWindow, true);
}

OBSDock::OBSDock(const QString &title, QWidget *parent) : QDockWidget(title, parent)
{
this->setAttribute(Qt::WA_MacAlwaysShowToolWindow, true);
}

void OBSDock::closeEvent(QCloseEvent *event)
{
auto msgBox = []() {
Expand Down
4 changes: 2 additions & 2 deletions frontend/docks/OBSDock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class OBSDock : public QDockWidget {
Q_OBJECT

public:
inline OBSDock(QWidget *parent = nullptr) : QDockWidget(parent) {}
inline OBSDock(const QString &title, QWidget *parent = nullptr) : QDockWidget(title, parent) {}
OBSDock(QWidget *parent = nullptr);
OBSDock(const QString &title, QWidget *parent = nullptr);

virtual void closeEvent(QCloseEvent *event);
virtual void showEvent(QShowEvent *event);
Expand Down
Loading