summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp
index 7b20fdc..0df949e 100644
--- a/core/launcher/launcherview.cpp
+++ b/core/launcher/launcherview.cpp
@@ -25,2 +25,3 @@
25#include <qpe/qpedebug.h> 25#include <qpe/qpedebug.h>
26#include <qpe/config.h>
26#include <qpe/categories.h> 27#include <qpe/categories.h>
@@ -128,2 +129,7 @@ public:
128 { 129 {
130 Config config("qpe");
131 config.setGroup("Appearance");
132 QString backgroundImage = config.readEntry("BackgroundImage");
133
134 if (backgroundImage.isNull()) backgroundImage="qpe-background";
129 int backgroundMode = QPixmap::defaultDepth() >= 12 ? 1 : 0; 135 int backgroundMode = QPixmap::defaultDepth() >= 12 ? 1 : 0;
@@ -145,5 +151,9 @@ public:
145 painter.fillRect( QRect( 0, 0, width(), height() ), colorGroup().background().light(110)); 151 painter.fillRect( QRect( 0, 0, width(), height() ), colorGroup().background().light(110));
146 152 // Overlay the Qtopia logo in the center
147 // Overlay the Qtopia logo in the center 153 QImage logo;
148 QImage logo = Resource::loadImage( "qpe-background" ); 154 if (QFile::exists(backgroundImage)) {
155 logo = QImage(backgroundImage);
156 } else {
157 logo = Resource::loadImage(backgroundImage );
158 }
149 if ( !logo.isNull() ) 159 if ( !logo.isNull() )