OTHER: read support for zipped skins

For now, zipped skins don't show up in the selection dialog yet
But they are loaded when set in the config file
This commit is contained in:
Thomas Frauendorfer 2010-02-09 22:52:04 +01:00
parent ff721650c0
commit 2aabed9491
8 changed files with 497 additions and 7 deletions

View file

@ -20,6 +20,7 @@
#include <QDir>
#include <QPainter>
#include <QSettings>
#include <QFileInfo>
#include <QDebug>
@ -700,8 +701,12 @@ Skin::setSkin (const QString& path)
QPixmap p_numbers;
QPixmap p_volume;
while (iter->hasNext ()) {
QString entry = iter->next ().toLower ();
QString entry;
while (!(entry = iter->next ().toLower ()).isEmpty ()) {
if ((entry = QFileInfo (entry).fileName ()).isEmpty ()) {
// workaround to ignore pathes in archives
continue;
}
if (entry.endsWith (".txt")) {
QPointer<QIODevice> d = iter->entry ();
if (d == 0)