forked from qt-creator/qt-creator
QmlDesigner: reduce include in cpp
Change-Id: Ibdccbfc11834bbdefba15070d8f1c3c470b9a8ea Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -75,7 +75,7 @@ public:
|
||||
};
|
||||
|
||||
CustomFileSystemModel::CustomFileSystemModel(QObject *parent) : QAbstractListModel(parent)
|
||||
, m_fileSystemModel(new QFileSystemModel)
|
||||
, m_fileSystemModel(new QFileSystemModel(this))
|
||||
, m_fileSystemWatcher(new Utils::FileSystemWatcher(this))
|
||||
{
|
||||
m_fileSystemModel->setIconProvider(new ItemLibraryFileIconProvider());
|
||||
|
@@ -27,12 +27,10 @@
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
#include <QDir>
|
||||
#include <QFileSystemModel>
|
||||
|
||||
#include <memory>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QFileIconProvider;
|
||||
class QFileSystemModel;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Utils { class FileSystemWatcher; }
|
||||
@@ -65,7 +63,7 @@ public:
|
||||
private:
|
||||
QModelIndex fileSystemModelIndex(const QModelIndex &index) const;
|
||||
|
||||
std::unique_ptr<QFileSystemModel> m_fileSystemModel;
|
||||
QFileSystemModel *m_fileSystemModel;
|
||||
QStringList m_files;
|
||||
QString m_searchFilter;
|
||||
Utils::FileSystemWatcher *m_fileSystemWatcher;
|
||||
|
Reference in New Issue
Block a user