mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Force Fusion style on macOS
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
#include "singleapplication.h"
|
#include "singleapplication.h"
|
||||||
#include "qet.h"
|
#include "qet.h"
|
||||||
#include "macosxopenevent.h"
|
#include "macosxopenevent.h"
|
||||||
|
#include <QStyleFactory>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief main
|
* @brief main
|
||||||
@@ -47,6 +48,7 @@ int main(int argc, char **argv)
|
|||||||
//or drop these same files to the QET icon of the dock
|
//or drop these same files to the QET icon of the dock
|
||||||
MacOSXOpenEvent open_event;
|
MacOSXOpenEvent open_event;
|
||||||
app.installEventFilter(&open_event);
|
app.installEventFilter(&open_event);
|
||||||
|
app.setStyle(QStyleFactory::create("Fusion"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (app.isSecondary())
|
if (app.isSecondary())
|
||||||
|
|||||||
Reference in New Issue
Block a user