From 5eefd0159bb38562c860620e914222a8e19c936f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Apr 2014 09:45:30 +0530 Subject: [PATCH] Ensure platform specific button orders --- .../gui2/progress_indicator/QProgressIndicator.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp b/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp index 5ff3f54625..e2d2920fe9 100644 --- a/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp +++ b/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp @@ -143,6 +143,14 @@ class CalibreStyle: public QProxyStyle { switch (hint) { case SH_DialogButtonBox_ButtonsHaveIcons: return 1; // We want icons on dialog button box buttons + case SH_DialogButtonLayout: + // Use platform specific button orders always +#ifdef Q_OS_WIN32 + return QDialogButtonBox::WinLayout; +#elif defined(Q_OS_MAC) + return QDialogButtonBox::MacLayout; +#endif + break; default: break; }