qt6-bb10/tests/auto/widgets
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
..
dialogs Strip any trailing spaces from the filename before trying to open it 2014-02-21 15:58:51 +01:00
effects QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
graphicsview expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
itemviews Merge remote-tracking branch 'origin/dev' into stable 2014-02-19 10:06:25 +01:00
kernel Move setWindowIcon() up to QGuiApplication. 2014-02-12 20:12:17 +01:00
styles Test password mask delay and characters on Mac. 2013-07-11 10:56:49 +02:00
util QCompleter::setFilterMode() add property filterMode. 2013-09-20 23:45:06 +02:00
widgets Dynamic GL switch on Windows 2014-02-14 10:51:44 +01:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00