feat: support explorer sort and hidden on Window
now playlist can use Windows Explorer's sort and hidden file display options to build it own for better browse experience on Windows
This commit is contained in:
21
app/winplaylistpatch.h
Normal file
21
app/winplaylistpatch.h
Normal file
@@ -0,0 +1,21 @@
|
||||
// SPDX-FileCopyrightText: 2026 yyc12345 <yyc12321@outlook.com>
|
||||
//
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QtSystemDetection>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
|
||||
#include <QUrl>
|
||||
class WinPlaylistPatch
|
||||
{
|
||||
public:
|
||||
static bool loadSingleFilePlaylist(const QUrl &url,
|
||||
const QStringList &allowedSuffixes,
|
||||
QList<QUrl> &playlist,
|
||||
std::optional<qsizetype> &indexHint);
|
||||
};
|
||||
|
||||
#endif // Q_OS_WIN
|
||||
Reference in New Issue
Block a user