Opened 14 years ago

Closed 14 years ago

#109 closed defect (fixed)

QFSfileEngine doesn't set RootFlag for drives

Reported by: Dmitry A. Kuminov Owned by:
Priority: major Milestone: Qt Beta 5
Component: QtCore Version: 4.5.1 Beta 3
Severity: Keywords:
Cc:

Description

As a result, QFileInfo::isRoot("X:/") returns false. This confuses QDirModel and makes intefaces using it (e.g. examples\itemviews\dirview or the mp3diags file tree view) look really wrong, see the screenshot.

Attachments (2)

dirview.png (11.9 KB) - added by Dmitry A. Kuminov 14 years ago.
How QTreeView(QDirModel) looks on OS/2
XP.png (40.0 KB) - added by Dmitry A. Kuminov 14 years ago.
How QTreeView(QDirModel) looks on Windows and how it should look

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by Dmitry A. Kuminov

Attachment: dirview.png added

How QTreeView(QDirModel) looks on OS/2

Changed 14 years ago by Dmitry A. Kuminov

Attachment: XP.png added

How QTreeView(QDirModel) looks on Windows and how it should look

comment:1 Changed 14 years ago by Dmitry A. Kuminov

The QFSFileEngine problem is fixed in r375. I also fixed setting of the Hidden flag; previously Qt reported files starting with a dot as hidden (e.g. Unix style).

Also, I added a few usual #ifdef Q_OS_OS2 in addition to Q_OS_WIN in QDirModel in r376 which should make it behave in a DOS-like way on OS/2 too.

comment:2 Changed 14 years ago by Dmitry A. Kuminov

Resolution: fixed
Status: newclosed

According to my tests everything works OK now. Pol Elbert confirms that too.

Note: See TracTickets for help on using tickets.