Skip to content

Commit

Permalink
Make detached contexts apply the Qt style sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
chille committed Feb 1, 2021
1 parent f363676 commit 11d61b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/app.cpp
Expand Up @@ -1162,7 +1162,7 @@ void App::slotDetachContext(int index)

qDebug() << "Detaching context" << context;

DetachedContext *detachedWindow = new DetachedContext();
DetachedContext *detachedWindow = new DetachedContext(this);
detachedWindow->setCentralWidget(context);
detachedWindow->resize(800, 600);
detachedWindow->show();
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app.h
Expand Up @@ -57,7 +57,7 @@ class DetachedContext : public QMainWindow
Q_OBJECT

public:
DetachedContext() {}
DetachedContext(QWidget *parent) : QMainWindow(parent) {}

protected slots:
void closeEvent(QCloseEvent *ev)
Expand Down

0 comments on commit 11d61b8

Please sign in to comment.