summaryrefslogtreecommitdiff
path: root/src/moapplication.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-03-18 19:18:17 +0100
committerTannin <devnull@localhost>2014-03-18 19:18:17 +0100
commit2d0fab4482cea8a3472e2430f4746feeae1784ff (patch)
tree6e8aa3ace90a950970a14ba59250efaecbaab9bf /src/moapplication.cpp
parentc19c4820d87bdf350f0725712c0b5af908fa9580 (diff)
parentff272dcbbdf7ae9228bde4b9ddd15a152a109fe1 (diff)
Merge
Diffstat (limited to 'src/moapplication.cpp')
-rw-r--r--src/moapplication.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/moapplication.cpp b/src/moapplication.cpp
index f09b2fd9..12ff713b 100644
--- a/src/moapplication.cpp
+++ b/src/moapplication.cpp
@@ -23,8 +23,10 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <appconfig.h>
#include <QFile>
#include <QStringList>
+#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <QPlastiqueStyle>
#include <QCleanlooksStyle>
+#endif
#include <QProxyStyle>
#include <QStyleFactory>
#include <QPainter>
@@ -123,12 +125,18 @@ bool MOApplication::notify(QObject *receiver, QEvent *event)
void MOApplication::updateStyle(const QString &fileName)
{
+#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
+ if (fileName == "Fusion") {
+ setStyle(QStyleFactory::create("fusion"));
+ setStyleSheet("");
+#else
if (fileName == "Plastique") {
setStyle(new ProxyStyle(new QPlastiqueStyle));
setStyleSheet("");
} else if (fileName == "Cleanlooks") {
setStyle(new ProxyStyle(new QCleanlooksStyle));
setStyleSheet("");
+#endif
} else {
setStyle(new ProxyStyle(QStyleFactory::create(m_DefaultStyle)));
if (QFile::exists(fileName)) {