mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
Added drop support for copying/moving files in the folders view
This commit is contained in:
@ -189,6 +189,17 @@ bool Comic::fileIsComic(QUrl &path)
|
||||
return literalComicExtensions.contains(info.suffix());
|
||||
}
|
||||
|
||||
QList<QString> Comic::filterInvalidComicFiles(const QList<QUrl> &list)
|
||||
{
|
||||
QList<QString> validComicFiles;
|
||||
foreach (QUrl url, list) {
|
||||
if(Comic::fileIsComic(url))
|
||||
validComicFiles << url.toLocalFile();
|
||||
}
|
||||
|
||||
return validComicFiles;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -85,6 +85,7 @@ class ComicDB;
|
||||
inline static QStringList getSupportedImageLiteralFormats() { return literalImageExtensions;}
|
||||
|
||||
static bool fileIsComic(QUrl & path);
|
||||
static QList<QString> filterInvalidComicFiles(const QList<QUrl> & list);
|
||||
|
||||
public slots:
|
||||
void loadFinished();
|
||||
|
Reference in New Issue
Block a user