Add a version check to our splitter styling.

According to https://bugreports.qt.io/browse/QTBUG-43425 the OS X
splitter rendering issue will be fixed in Qt 5.6.

Change-Id: I99e000d96f8f61cd654be3808fd79577bac11d88
Reviewed-on: https://code.wireshark.org/review/10381
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2015-09-04 09:22:41 -07:00
parent f5ac9f55c4
commit a69a515f28
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ WiresharkApplication::WiresharkApplication(int &argc, char **argv) :
// Application-wide style sheet
QString app_style_sheet = qApp->styleSheet();
#if defined(Q_OS_MAC)
#if defined(Q_OS_MAC) && QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
// Qt uses the HITheme API to draw splitters. In recent versions of OS X
// this looks particularly bad: https://bugreports.qt.io/browse/QTBUG-43425
// This doesn't look native but it looks better than Yosemite's bit-rotten