Custom Query (301 matches)
Results (109 - 111 of 301)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#239 | fixed | QFileSystemModel::setRootPath doesn't convert separators | ||
Description |
We are missing a check for Q_OS_OS here. |
|||
#298 | fixed | QFileSystemModel::directoryLoaded() signal passes a drive root as x: not x:/ | ||
Description |
Hi/2 When connecting directoryLoaded() signal, a drive root is passed to a slot as x: not x:/. Actually, x:/ is passed on Qt for Windows. For example, see the following code snippets. QFileSystemModel* model = new QFileSystemModel; connect(model, SIGNAL(directoryLoaded(QString)), this, SLOT(directoryLoaded(QString))); model->setRootPath(""); QTreeView *treeView = new QTreeView; treeView->setModel(model); treeView->setCurrentIndex(model->index(QDir::currentPath())); And if a current directory is x:/path/to/dir, then slot directoryLoaded() receives a directory in this order.
However, on Windows
I think, Windows is right. Because x: is not a fully-qualified path and it means a current directory of x: drive. |
|||
#238 | fixed | QFileSystemModel incorrectly sorts directories | ||
Description |
QFileSystemModel doesn't make sure, that the "." and ".." entries are reported first. So directories starting with an exclamation mark get listed before them. |