forked from qt-creator/qt-creator
Generic Project Wizard: Fix Icon of root item in edit files
Change-Id: I4d42bca662207ad9f8ee8db55d88f4618b1ccc2d Reviewed-on: http://codereview.qt.nokia.com/697 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -49,6 +49,7 @@ SelectableFilesModel::SelectableFilesModel(const QString &baseDir, QObject *pare
|
|||||||
m_root = new Tree;
|
m_root = new Tree;
|
||||||
m_root->name = "/";
|
m_root->name = "/";
|
||||||
m_root->parent = 0;
|
m_root->parent = 0;
|
||||||
|
m_root->fullPath = m_baseDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SelectableFilesModel::setInitialMarkedFiles(const QStringList &files)
|
void SelectableFilesModel::setInitialMarkedFiles(const QStringList &files)
|
||||||
@@ -72,6 +73,7 @@ void SelectableFilesModel::startParsing()
|
|||||||
m_rootForFuture = new Tree;
|
m_rootForFuture = new Tree;
|
||||||
m_rootForFuture->name = "/";
|
m_rootForFuture->name = "/";
|
||||||
m_rootForFuture->parent = 0;
|
m_rootForFuture->parent = 0;
|
||||||
|
m_rootForFuture->fullPath = m_baseDir;
|
||||||
|
|
||||||
connect(&m_watcher, SIGNAL(finished()), this, SLOT(buildTreeFinished()));
|
connect(&m_watcher, SIGNAL(finished()), this, SLOT(buildTreeFinished()));
|
||||||
m_watcher.setFuture(QtConcurrent::run(&SelectableFilesModel::run, this));
|
m_watcher.setFuture(QtConcurrent::run(&SelectableFilesModel::run, this));
|
||||||
|
|||||||
Reference in New Issue
Block a user