Skip to content

Commit

Permalink
Try using Qt::Tool for StyleEditorWindow
Browse files Browse the repository at this point in the history
I think this looks good on macOS and GNOME, but needs to be tested
on other platforms as well.

On macOS, a tool window will stay on top of the main window, but it will
hide when another application is selected.
  • Loading branch information
bjorn committed Feb 10, 2023
1 parent d1b6b45 commit d85e9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styleeditorwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Initializes the window components and configures the StyleEditorWindow
*/
StyleEditorWindow::StyleEditorWindow(QWidget *parent)
: QDialog(parent),
: QDialog(parent, Qt::Tool),
m_ui(new Ui::StyleEditorWindow),
m_currentlyClickedButton(Q_NULLPTR),
m_currentSelectedFontButton(Q_NULLPTR),
Expand Down

0 comments on commit d85e9ae

Please sign in to comment.