summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-05-27 07:03:05 -0700
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-31 10:55:54 +0200
commitce92a2edc910ebed72bf50ae6fe2492579c6d031 (patch)
tree0dac56d633f8a7d19e9e23d6eefcef7abea282f6 /lib
parent7de54759987a661d902d37fc9e221a2552988321 (diff)
Use oxygen as a fallback theme.
Diffstat (limited to 'lib')
-rw-r--r--lib/shell_qt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/shell_qt.cpp b/lib/shell_qt.cpp
index 44c7396d8..4c5557857 100644
--- a/lib/shell_qt.cpp
+++ b/lib/shell_qt.cpp
@@ -85,6 +85,11 @@ void Shell::PlatformCreateWindow(int width, int height) {
return;
if (!m_window) {
+
+ // Use oxygen as a fallback.
+ if (QIcon::themeName().isEmpty())
+ QIcon::setThemeName("oxygen");
+
m_window = new QWidget;
m_window->setGeometry(100,100, width, height);