Skip to content

Commit ea8ec6a

Browse files
committed
v1.03, fixes Mac style issues
1 parent a080374 commit ea8ec6a

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

UwxMainWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
#define MODE_CHECK_FIRMWARE_VERSIONS 17
8282
#define MODE_CHECK_FIRMWARE_SUPPORT 18
8383
//Defines for version and functions
84-
#define UwVersion "1.02c" //Version string
84+
#define UwVersion "1.03" //Version string
8585
#define FileReadBlock 512 //Number of bytes to read per block when streaming files
8686
#define StreamProgress 10000 //Number of bytes between streaming progress updates
8787
#define BatchTimeout 4000 //Time (in mS) to wait for getting a response from a batch command for

main.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
#include "UwxMainWindow.h"
2828
#include <QApplication>
2929
#include <QCommandLineParser>
30+
#if TARGET_OS_MAC
31+
#include <QStyleFactory>
32+
#endif
3033

3134
//=============================================================================
3235
//=============================================================================
@@ -37,6 +40,10 @@ main(
3740
)
3841
{
3942
QApplication a(argc, argv);
43+
#if TARGET_OS_MAC
44+
//Fix for Mac to stop bad styling
45+
QApplication::setStyle(QStyleFactory::create("Fusion"));
46+
#endif
4047
MainWindow w;
4148
w.show();
4249

0 commit comments

Comments
 (0)