From e5059aa997e0a63d28d3c175a40f47e3336c2eb8 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 20 Aug 2012 12:08:56 -0400 Subject: [PATCH] Don't believe the hype. OS X doesn't play nice. --- src/widgets/SlideSwitchButton.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/widgets/SlideSwitchButton.cpp b/src/widgets/SlideSwitchButton.cpp index 59f45cddb..392e37460 100644 --- a/src/widgets/SlideSwitchButton.cpp +++ b/src/widgets/SlideSwitchButton.cpp @@ -92,7 +92,13 @@ SlideSwitchButton::init() QSize SlideSwitchButton::sizeHint() const { +#ifndef Q_OS_MAC const QSize size = QPushButton::sizeHint(); +#else + // Don't believe the hype. OS X doesn't play nice. + const QSize size( 70, 20 ); +#endif + return QSize( ASPECT_RATIO * size.height(), size.height() ); }