r13966 by fschmid - Allow display of previews for all known image formats in the fileselector.

scribus-commit scribus-commit at lists.scribus.net
Sun Sep 6 11:20:15 CEST 2009


Revision: 13966
Author: fschmid
Date: 2009-09-06T09:19:45.558053Z
Commit message: Allow display of previews for all known image formats in the fileselector.

Changeset: 
M  /trunk/Scribus/scribus/ui/customfdialog.cpp

Diffs:
Index: scribus/ui/customfdialog.cpp
===================================================================
--- scribus/ui/customfdialog.cpp	(revision 13965)
+++ scribus/ui/customfdialog.cpp	(revision 13966)
@@ -138,21 +138,9 @@
 	int h = pixmap()->height();
 	bool mode = false;
 	QString ext = fi.suffix().toLower();
-	QList<QByteArray> formats(QImageReader::supportedImageFormats());
-// 	FormatsManager::instance()->imageFormatSupported(ext);
-	formats.append("jpg");
-	formats.append("tif");
-	formats.append("tiff");
-	formats.append("psd");
-	formats.append("eps");
-	formats.append("epsi");
-	formats.append("pdf");
-	formats.append("ps");
+	QString formatD(FormatsManager::instance()->extensionListForFormat(FormatsManager::IMAGESIMGFRAME, 1));
+ 	QStringList formats = formatD.split("|");
 	formats.append("pat");
-// 	QString allFormats = formats.join( " " );
-// 	formats.clear();
-// 	allFormats = allFormats.toLower();
-// 	formats = QStringList::split( " ", allFormats );
 	if (ext.isEmpty())
 		ext = getImageType(name);
 	if (formats.contains(ext.toUtf8()))




More information about the scribus-commit mailing list