Fixed logic issue with offset file to file name in listWidget. Edited feel of settings window a bit

This commit is contained in:
2017-06-18 06:45:40 -05:00
parent c2f7118ed6
commit 3f2713bd16
2 changed files with 151 additions and 152 deletions

View File

@@ -183,14 +183,13 @@ void MainWindow::updateAssetTree(QString path)
{
ui->fileListWidget->clear();
m_Paths.clear();
QDirIterator itterator(path, QStringList() << "*.msh" << "*.MSH" << "*.mesh" << "*.MESH",
QDirIterator itterator(path, QStringList() << "*.msh" << "*.MSH" << "*.mesh" << "*.MESH",
QDir::Files, QDirIterator::Subdirectories);
while (itterator.hasNext()) {
ui->fileListWidget->insertItem(0, new QListWidgetItem(itterator.fileName()));
m_Paths.append(itterator.next());
ui->fileListWidget->insertItem(0, new QListWidgetItem(itterator.fileName()));
m_Paths.prepend(itterator.fileInfo().absoluteFilePath());
itterator.next();
}
}