qt5base-lts/tests/auto/gui
Marc Mutz 78b6876974 Long live QColor::fromString()!
It is customary for Qt types that can be constructed from string-ish
to provide a fromString() named constructor. QColor didn't, relying
instead on a set of overloaded implicit and explicit constructors.

Add the named constructor, with the intent to deprecate the string-ish
QColor constructors after a grace period.

To prevent new users from using known-to-become-deprecated API, mark
the old functions as \obsolete.

Also rename isValidColor() to isValidColorName(). The only reason why
these are lumped together in single commit is so that their docs can
refer to each other instead of having to temporarily refer to obsolete
API.

[ChangeLog][QtGui][QColor] Added fromString() and isValidColorName(),
both taking QAnyStringView.

Task-number: QTBUG-101389
Change-Id: I2857c728257ad2f14c7c968b45547bdf07c44b63
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-03-08 06:51:10 +01:00
..
image tests: XFAIL tst_QImageReader::setScaledClipRect() SVG/SVGZ 2022-03-02 15:37:32 +01:00
itemmodels Fix flags in QFileSystemModel 2022-02-02 10:28:13 +01:00
kernel Blacklist: test cases blacklisted in tst_QTouchEvent: 2022-03-07 22:14:10 +00:00
math3d QtGui/math3d: Fix QQuaternion::getEulerAngles for GimbalLock cases 2022-01-16 01:12:15 +01:00
painting Long live QColor::fromString()! 2022-03-08 06:51:10 +01:00
platform tests: skip tst_QX11Info on Wayland 2022-02-17 00:34:50 +01:00
qopengl tests: XFAIL tst_QOpenGL::bufferMapRange() on Wayland 2022-03-02 15:37:33 +01:00
qopenglconfig Remove the qmake project files 2021-01-07 15:32:28 +01:00
qvulkan vulkan: Update legacy tests and examples to the modern validation layer 2021-05-31 17:16:49 +02:00
rhi CMake: Add BUILTIN_TESTDATA option to qt_internal_add_test 2022-02-11 21:54:44 +01:00
text tests: XFAIL a few in tst_QStaticText on Wayland 2022-03-02 15:37:33 +01:00
util QDesktopServices: deprecate destroying URL handlers w/o explicit unsetUrlHandler() 2022-02-15 12:20:16 +00:00
CMakeLists.txt Move QtX11Extras into QtGui as private API 2021-05-10 21:19:46 +00:00