diff --git a/QtCollider/style/ProxyStyle.cpp b/QtCollider/style/ProxyStyle.cpp index db2642a8e03..69475fef874 100644 --- a/QtCollider/style/ProxyStyle.cpp +++ b/QtCollider/style/ProxyStyle.cpp @@ -2,6 +2,7 @@ #include "../QcApplication.h" +#include #include #include #include @@ -13,15 +14,14 @@ using namespace QtCollider; static bool AlwaysShowScrollbars() { -#ifdef Q_OS_MAC +#if defined(Q_OS_MAC) return QtCollider::Mac::AlwaysShowScrollbars(); -#elif Q_OS_X11 +#elif defined(Q_OS_X11) return !QcApplication::SystemHasMouseWheel(); -// Creates a build error in VStudio 2013 C1017 -// #elif Q_OS_WIN -// return !QcApplication::SystemHasMouseWheel(); +#elif defined(Q_OS_WIN) + return !QcApplication::SystemHasMouseWheel(); #else return !QcApplication::SystemHasMouseWheel();