qt6-bb10/tests/manual
Ahmad Samir 2a8b27bf6c QFileSystemModel: don't crash with setIconProvider(nullptr)
The method takes a pointer, so the code shouldn't crash when passed a
nullptr.

QFileInfoGatherer::getInfo() still needs to generate a descriptive
string for the file, so we refactor QAbstractFileIconProvider::type()
to put the implementation into a reusable static function
QAbstractFileIconProviderPrivate::getFileType(const QFileInfo &info).
This unfortunately involves constructing a QMimeDatabase on the fly,
but the docs say that is fine.

Drive-by change: use nullptr instead of `0` for pointers.

Pick-to: 6.5 6.6 6.7
Fixes: QTBUG-99178
Change-Id: Ia32ea0a26701d593e74fbecced7be8d9e0aa0f52
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2024-02-01 22:06:12 +00:00
..
android_content_uri Make android_content_uri directly openable in Creator 2023-06-28 02:05:37 +00:00
cmake/test_copy_file_if_different_command
cocoa Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
corelib tst_manualqdatastream: fix gcc error 2024-01-26 15:10:22 +01:00
diaglib
dialogs QFileSystemModel: don't crash with setIconProvider(nullptr) 2024-02-01 22:06:12 +00:00
embeddedintoforeignwindow Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
embeddedwindows Android: Add preliminary support for child windows 2023-12-08 15:53:37 +02:00
examples Add the new Android bluetooth permissions to the manual test app 2024-01-23 18:44:54 +02:00
filetest filetest: add moveToTrash() operation 2024-01-18 18:50:12 -08:00
findfiles
fontfeatures Replace MAKE_TAG macro with QFont::Tag 2023-10-20 21:37:02 +02:00
foreignwindows
gestures Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
graphicsframecapture Add Manual test for Graphics Frame Capture 2023-09-20 10:51:55 +03:00
highdpi tests: port assorted trivial uses of Q_FOREACH to ranged for loops 2023-08-14 23:11:54 +03:00
iconbrowser QIcon: turn platform engines on by default 2023-12-07 16:43:17 +00:00
inputdevices
inputmethodhints
ios_assets CMake: Update the ios assets manual test 2023-09-22 20:40:36 +02:00
keyevents Add missing static to constexpr in keyevents test 2023-10-17 23:34:22 +02:00
keypadnavigation
lance Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
markdown
mkspecs
network/ssl/client-auth Ssl: Copy the on-demand cert loading bool from default config 2023-05-29 16:03:35 +02:00
network_remote_stresstest
network_stresstest
permissions Android: set default style extraction to minimal 2023-12-22 21:21:37 +02:00
qcursor
qdesktopservices
qdnslookup QDnsLookup: add support for setting the port number of the server 2023-05-23 21:23:42 -07:00
qglyphruns
qgraphicsitem
qgraphicsitemgroup Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qgraphicslayout
qhttpnetworkconnection
qimagereader QImageReader test: add test image to qrc file 2024-01-16 23:17:32 +01:00
qlayout
qlocale Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qmetatype
qmimedatabase Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qnetconmonitor
qnetworkaccessmanager/qget Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qnetworkinformation
qnetworkreply
qopenglcontext
qopengltextureblitter
qopenglwidget Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qopenglwindow/multiwindow
qprintdevice_dump Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qscreen Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
qscreen_xrandr
qssloptions
qsslsocket QSslSocket manual test: replace QList with const array 2023-08-08 18:57:40 +02:00
qstorageinfo tst_QStorageInfo: align the columns without newlines 2023-10-15 18:37:07 -07:00
qsysinfo
qt_poll
qtabbar
qtabletevent Make tests/manual/qtabletevent/device_information build standalone 2023-10-10 18:27:22 +02:00
qtbug-8933
qtbug-52641
qtextcursorinsert Add manual test for QTextCursor::insert* 2023-09-12 06:20:23 +01:00
qtexteditlist
qtexttableborders
qtouchevent
qvulkaninstance
qwidget_zorder
repaint manual repaint test: port away from Q_FOREACH 2023-08-08 17:08:00 +02:00
rhi Fix compilation error for QRhi stereo manual test 2023-10-05 08:18:01 +00:00
shortcuts
socketengine QAbstractSocketEngine: port to QDeadlineTimer 2023-10-07 02:28:12 +03:00
startsystemmove
stereographicsview
textrendering Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
touch
touchGraphicsItem
transientwindow
triangulator
unc
wasm Compile with getOpenGileContent() API changes 2024-01-08 21:00:09 +00:00
widgetgrab
widgets Preparations to deprecate QItemDelegate 2023-10-05 21:08:45 +02:00
windowactivation
windowchildgeometry
windowflags Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
windowgeometry
windowmask
windowmodality
windowtransparency
xcb_gl_integration
xembed
xmlstreamlint
CMakeLists.txt Add key events manual tests 2023-09-27 17:47:19 +02:00
manual.pro Add key events manual tests 2023-09-27 17:47:19 +02:00