Added playlist extensions to combobox in "file open" dialog.
This commit is contained in:
parent
571625a032
commit
ac53f70488
@ -217,6 +217,10 @@
|
||||
<source>All supported types</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playlists</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>All files</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
@ -221,6 +221,10 @@
|
||||
<source>All files</source>
|
||||
<translation>Alle Dateien</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playlists</source>
|
||||
<translation>Wiedergabelisten</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DropBox</name>
|
||||
|
@ -222,6 +222,10 @@
|
||||
<source>All files</source>
|
||||
<translation>Todos los archivos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playlists</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DropBox</name>
|
||||
|
@ -222,6 +222,10 @@
|
||||
<source>All files</source>
|
||||
<translation>Tous les fichiers</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playlists</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DropBox</name>
|
||||
|
@ -221,6 +221,10 @@
|
||||
<source>All files</source>
|
||||
<translation>Tutti i files</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Playlists</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DropBox</name>
|
||||
|
Binary file not shown.
@ -40,6 +40,8 @@
|
||||
#include <QStringList>
|
||||
#include <QRegExp>
|
||||
|
||||
static const char *g_playlistExt = "*.m3u *.m3u8 *.pls *.asx *.wpl";
|
||||
|
||||
#define PROBE_DECODER(DEC) if(DEC::isDecoderAvailable() && DEC::isFormatSupported(containerType, containerProfile, formatType, formatProfile, formatVersion)) { return new DEC(); }
|
||||
#define GET_FILETYPES(DEC) (DEC::isDecoderAvailable() ? DEC::supportedTypes() : QStringList())
|
||||
|
||||
@ -83,6 +85,7 @@ QStringList DecoderRegistry::getSupportedTypes(void)
|
||||
types << GET_FILETYPES(ADPCMDecoder);
|
||||
|
||||
QStringList extensions;
|
||||
extensions << QString(g_playlistExt).split(" ", QString::SkipEmptyParts);
|
||||
QRegExp regExp("\\((.+)\\)", Qt::CaseInsensitive);
|
||||
|
||||
for(int i = 0; i < types.count(); i++)
|
||||
@ -100,6 +103,8 @@ QStringList DecoderRegistry::getSupportedTypes(void)
|
||||
types.prepend(QString("%1 (%2)").arg(tr("All supported types"), extensions.join(" ")));
|
||||
}
|
||||
|
||||
types << QString("%1 (%2)").arg(tr("Playlists"), g_playlistExt);
|
||||
types << QString("%1 (*.*)").arg(tr("All files"));
|
||||
|
||||
return types;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user