From 5bee29c1546550a34d7036bcf2f44060992470bd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 26 Oct 2014 09:10:43 +0530 Subject: [PATCH] ... --- src/calibre/gui2/progress_indicator/QProgressIndicator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp b/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp index 8bec8db96f..dca3b0828e 100644 --- a/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp +++ b/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp @@ -163,7 +163,7 @@ class CalibreStyle: public QProxyStyle { CalibreStyle(QStyle *base, QHash icmap) : QProxyStyle(base), icon_map(icmap) { setObjectName(QString("calibre")); desktop_environment = detectDesktopEnvironment(); - button_layout = (QDialogButtonBox::ButtonLayout)QProxyStyle::styleHint(SH_DialogButtonLayout); + button_layout = static_cast(QProxyStyle::styleHint(SH_DialogButtonLayout)); if (desktop_environment == QString::fromLatin1("GNOME") || desktop_environment == QString::fromLatin1("MATE") || desktop_environment == QString::fromLatin1("UNITY")) button_layout = QDialogButtonBox::GnomeLayout; }