Opened 9 years ago

Closed 9 years ago

#109 closed defect (fixed)

QFSfileEngine doesn't set RootFlag for drives

Reported by: dmik 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 dmik 9 years ago.
How QTreeView(QDirModel) looks on OS/2
XP.png (40.0 KB) - added by dmik 9 years ago.
How QTreeView(QDirModel) looks on Windows and how it should look

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by dmik

How QTreeView(QDirModel) looks on OS/2

Changed 9 years ago by dmik

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

comment:1 Changed 9 years ago by dmik

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 9 years ago by dmik

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.