qt5base-lts/tests/auto/widgets
Alexander Volkov acf43c17b6 QFileSystemModel: create nodes with correct QFileInfos
Create parent nodes with the corresponding paths, not with
the absolute path of the child node. Otherwise we will get
incorrect QFileInfo at least in the following case:

    QFileSystemModel model;
    model.setRootPath("/usr/bin");
    QModelIndex idx = model.setRootPath("/usr");
    qDebug() << model.fileInfo(idx).absoluteFilePath();

Without the fix it prints "/usr/bin".

It's a regression triggered by 61cefb2f7a
(De-inline QFileSystemModel::fileInfo() and implement it efficiently).

Change-Id: I3b4e5f5b256711e27ad50824eaa8492dbc096808
Task-number: QTBUG-51586
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
2016-05-10 20:51:15 +00:00
..
dialogs QFileSystemModel: create nodes with correct QFileInfos 2016-05-10 20:51:15 +00:00
effects Purge sRGB chunks from PNGs in tests. 2016-03-29 08:39:43 +00:00
gestures Autotest: Remove blacklistings 2016-04-01 05:41:21 +00:00
graphicsview Remove empty first lines of files. 2016-04-06 18:26:26 +00:00
itemviews QTableView: Fix selection for reordered or hidden rows/columns 2016-05-09 05:14:38 +00:00
kernel Enable movedAndResizedAttributes test. 2016-05-10 10:36:08 +00:00
styles Make sure QStyleOption is correctly initialized. 2016-04-05 20:32:26 +00:00
util Pass -silent to lrelease to avoid cruft in test logs. 2016-02-02 16:28:07 +00:00
widgets tst_QMdiArea::subWindowActivated2(): Allow for several activated events. 2016-05-09 08:40:00 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00