summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/library.pro2
-rw-r--r--library/resource.h10
2 files changed, 12 insertions, 0 deletions
diff --git a/library/library.pro b/library/library.pro
index 95c18a2..7143454 100644
--- a/library/library.pro
+++ b/library/library.pro
@@ -124,4 +124,6 @@ SOURCES = calendar.cpp \
HEADERS += quuid.h qcom.h qlibrary.h qlibrary_p.h
SOURCES += quuid.cpp qlibrary.cpp qlibrary_unix.cpp
+
+DEFINES += OPIE_INTERNAL_LIBRARY_BUILD
INCLUDEPATH += $(OPIEDIR)/include backend
LIBS += -ldl -lcrypt -lm
diff --git a/library/resource.h b/library/resource.h
index 4a3502a..9e4cb54 100644
--- a/library/resource.h
+++ b/library/resource.h
@@ -43,8 +43,14 @@ public:
};
+#ifdef OPIE_INTERNAL_LIBRARY_BUILD
extern bool qpe_fast_findPixmap;
+#endif
+
+
// Inline for compatibility with SHARP ROMs
inline QIconSet Resource::loadIconSet( const QString &pix )
{
+
+#ifdef OPIE_INTERNAL_LIBRARY_BUILD
/*
* disable the slow load
@@ -52,4 +58,5 @@ inline QIconSet Resource::loadIconSet( const QString &pix )
bool oldMode = qpe_fast_findPixmap;
qpe_fast_findPixmap = true;
+#endif
QPixmap dpm = loadPixmap( pix + "_disabled" );
@@ -59,5 +66,8 @@ inline QIconSet Resource::loadIconSet( const QString &pix )
is.setPixmap( dpm, pm.width() <= 22 ? QIconSet::Small : QIconSet::Large, QIconSet::Disabled );
+#ifdef OPIE_INTERNAL_LIBRARY_BUILD
qpe_fast_findPixmap = oldMode;
+#endif
+
return is;
}