qt6-bb10/tests/auto/widgets/dialogs
Andy Shaw ecd3027d38 Strip any trailing spaces from the filename before trying to open it
On Windows, trailing spaces in a filename are silently ignored, so we
need to strip it before trying to open a file with it. Otherwise it ends
up being stripped later and in a case like " ." it will end up causing
Qt to think that a folder exists when it does not.

[ChangeLog][Platform Specific Changes][Windows][QtWidgets][QFileDialog]
Handled the case of having trailing spaces in a filename correctly so if
the filename ends up being empty that the parent path is used instead.

Change-Id: I6500cc3a44746bf4a65e73bcfb63265a0a97c8a3
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2014-02-21 15:58:51 +01:00
..
qcolordialog Revert Mac event loop changes. 2013-09-02 13:07:35 +02:00
qdialog expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
qerrormessage QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
qfiledialog Strip any trailing spaces from the filename before trying to open it 2014-02-21 15:58:51 +01:00
qfiledialog2 expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
qfilesystemmodel Merge remote-tracking branch 'origin/dev' into stable 2014-02-19 10:06:25 +01:00
qfontdialog expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
qinputdialog expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
qmessagebox xcb: QWindow never uses XCB_GRAVITY_CENTER 2013-09-16 14:15:06 +02:00
qprogressdialog QProgressDialog: add unittest for the auto-show feature 2013-11-20 09:03:09 +01:00
qsidebar Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qwizard expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
dialogs.pro Replace win32-g++ with mingw scope 2014-01-17 12:08:24 +01:00