Core: Use FilePath in IDocumentFactory::open()

Change-Id: I369f3bba2e0d1d33fed3a29f3c1408429cc7d8f8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-07-23 11:15:18 +02:00
parent 124909c802
commit 64c9384cb8
5 changed files with 17 additions and 12 deletions

View File

@@ -33,6 +33,8 @@
#include <functional>
namespace Utils { class FilePath; }
namespace Core {
class IDocument;
@@ -45,8 +47,8 @@ public:
static const QList<IDocumentFactory *> allDocumentFactories();
using Opener = std::function<IDocument *(const QString &fileName)>;
IDocument *open(const QString &filename);
using Opener = std::function<IDocument *(const Utils::FilePath &filePath)>;
IDocument *open(const Utils::FilePath &filePath);
QStringList mimeTypes() const { return m_mimeTypes; }