summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/resource.cpp39
1 files changed, 12 insertions, 27 deletions
diff --git a/library/resource.cpp b/library/resource.cpp
index 92d4b60..f6b548d 100644
--- a/library/resource.cpp
+++ b/library/resource.cpp
@@ -37,4 +37,2 @@ namespace {
-static bool g_notUseSet = ::getenv("OVERWRITE_ICON_SET");
-
/*!
@@ -168,33 +166,20 @@ static QImage load_image(const QString &name)
- if (g_notUseSet ) {
- // try file
- QString f = Resource::findPixmap(name);
- if ( !f.isEmpty() )
- img.load(f);
#ifndef LIBQPE_NO_INLINE_IMAGES
- if (img.isNull() )
- img = qembed_findImage(name.latin1() );
-#endif
+ img = qembed_findImage(name.latin1());
+#else
+ QString f = Resource::findPixmap( "/inline/" + name );
+ if ( !f.isEmpty() )
+ {
+ img.load(f);
return img;
}
- else{
-#ifndef LIBQPE_NO_INLINE_IMAGES
- img = qembed_findImage(name.latin1());
-#else
- QString f = Resource::findPixmap( "/inline/" + name );
+#endif
+ if ( img.isNull() )
+ {
+ // No inlined image, try file
+ QString f = Resource::findPixmap(name);
if ( !f.isEmpty() )
- {
img.load(f);
- return img;
- }
-#endif
- if ( img.isNull() )
- {
- // No inlined image, try file
- QString f = Resource::findPixmap(name);
- if ( !f.isEmpty() )
- img.load(f);
- }
- return img;
}
+ return img;
}