summaryrefslogtreecommitdiff
path: root/library
authorzecke <zecke>2003-04-23 08:00:36 (UTC)
committer zecke <zecke>2003-04-23 08:00:36 (UTC)
commit7272fdfd7490b789d978f8d9822bdd899c660eb5 (patch) (unidiff)
tree62e122bb4616fc8ad0c65991a53fcc9ceb70dfec /library
parent2b7ee2f7df2f79bc016dd8185e314a3f5df1b07e (diff)
downloadopie-7272fdfd7490b789d978f8d9822bdd899c660eb5.zip
opie-7272fdfd7490b789d978f8d9822bdd899c660eb5.tar.gz
opie-7272fdfd7490b789d978f8d9822bdd899c660eb5.tar.bz2
Better remove it once and for all... ( debug message )
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/resource.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/library/resource.cpp b/library/resource.cpp
index 80ce7a2..4108883 100644
--- a/library/resource.cpp
+++ b/library/resource.cpp
@@ -93,26 +93,24 @@ QString Resource::findPixmap( const QString &pix )
93 QString picsPath = QPEApplication::qpeDir() + "pics/"; 93 QString picsPath = QPEApplication::qpeDir() + "pics/";
94 94
95 QString f; 95 QString f;
96 96
97 // Common case optimizations... 97 // Common case optimizations...
98 f = picsPath + pix + ".png"; 98 f = picsPath + pix + ".png";
99 if ( QFile( f ).exists() ) 99 if ( QFile( f ).exists() )
100 return f; 100 return f;
101 f = picsPath + pix + ".xpm"; 101 f = picsPath + pix + ".xpm";
102 if ( QFile( f ).exists() ) 102 if ( QFile( f ).exists() )
103 return f; 103 return f;
104 104
105 //qDebug ( "\nLoading of image '%s' is not ideal (either it doesn't exist or an extension was specified)\n", pix.latin1());
106//is this really necessary??
107 105
108 // All formats... 106 // All formats...
109 QStrList fileFormats = QImageIO::inputFormats(); 107 QStrList fileFormats = QImageIO::inputFormats();
110 QString ff = fileFormats.first(); 108 QString ff = fileFormats.first();
111 while ( fileFormats.current() ) { 109 while ( fileFormats.current() ) {
112 QStringList exts = MimeType("image/"+ff.lower()).extensions(); 110 QStringList exts = MimeType("image/"+ff.lower()).extensions();
113 for ( QStringList::ConstIterator it = exts.begin(); it!=exts.end(); ++it ) { 111 for ( QStringList::ConstIterator it = exts.begin(); it!=exts.end(); ++it ) {
114 QString f = picsPath + pix + "." + *it; 112 QString f = picsPath + pix + "." + *it;
115 if ( QFile(f).exists() ) 113 if ( QFile(f).exists() )
116 return f; 114 return f;
117 } 115 }
118 ff = fileFormats.next(); 116 ff = fileFormats.next();