Ensure platform specific button orders

This commit is contained in:
Kovid Goyal 2014-04-25 09:45:30 +05:30
parent 1b61617432
commit 5eefd0159b

View File

@ -143,6 +143,14 @@ class CalibreStyle: public QProxyStyle {
switch (hint) { switch (hint) {
case SH_DialogButtonBox_ButtonsHaveIcons: case SH_DialogButtonBox_ButtonsHaveIcons:
return 1; // We want icons on dialog button box buttons 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: default:
break; break;
} }