forked from qt-creator/qt-creator
Core: Use FilePath in IDocumentFactory::open()
Change-Id: I369f3bba2e0d1d33fed3a29f3c1408429cc7d8f8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user