An id is now always saved as a null value and a null value is always
converted to an invalid id if you are requesting an id. It prevents
accidental conversion of null values into a id with the value of zero.
It prevent too writing of the value -1 for an id. This has two
advantages. Sqlite can optimize null values if there are only null
values following in a row. And with strict tables it is forbidden to use
a null value as a key. So there can be no accidential invalid ids
anymore in the database.
Change-Id: I5ec813f2fe8e686324eab6dd632c03d5007e093d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
The enumerations are now implicitly converted to integers and the
ValueGetter now can bind to enumerations.
Change-Id: Ia3d32cb447c77caf9c32942b426dff4d511dea59
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Before you had to use an constructor which is has an integer as
parameter. Like
struct Foo
{
Foo{long long id} : id{id} {}
Foo{TypeId id} : id{id} {}
TypeId id;
}
Now you can write:
struct Foo
{
TypeId id;
}
With C++ 20 we can even remove more contructors.
Change-Id: I374505a037a71339b672f5f3a57b06dcf443b4bf
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
The Titillium Web font comes in a QML module with FontLoader. Use that
instead of QFontDataBase, and retrieve the exact family name.
This also ensures that the font is loaded when editing the page in QDS
(if it is not loaded before e.g. by the QDS Welcome Screen).
Change-Id: I2cbec7fbc09fb4d4d31c513441c7cabbbbc5001d
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Using the model instead.
We still have to get rid of gradientLine.currentColor.
Change-Id: I9c7a9e6852e70525a6abddfbd874b6a7cc4d7691
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
The model is used to handle state and to render the preview in the color
editor. Therefore we need the model outside of the GradientLine.
Change-Id: Ia8c171d0cba6b944a8ac8b557d2f7be4e813b342
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Ideally the popup is only created on demand. This is the first step into
this direction.
Change-Id: I085ee645f9d35aedd9fd4b61b7749a649b06850f
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
It looks like we can be connected to only one
DockAreaWidget, and it's always m_focusArea, so
use m_focusArea instead of sender().
Change-Id: I3b226d98b05c857a20c126f76db195d4b79fc5c1
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
The Q_D_M is optional, but if you're going to use it, it must be on a
fully-declared type.
qmetatype.h:1137:9: error: static_assert failed due to requirement 'is_complete<Debugger::Internal::StartApplicationParameters, void>::value || std::is_void_v<Debugger::Internal::StartApplicationParameters>' "Meta Types must be fully defined"
Change-Id: I36b24183fbd041179f2ffffd17026fd9c3ab2459
Reviewed-by: hjk <hjk@qt.io>
Do some cleanup of unneeded () after lambda capture.
Fit code into 100 char lines.
Change-Id: I2494765f6ba7aa1f13f4eadb7183bc88febd9638
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This leads to crashes and is not necessary.
Change-Id: If7450aeb5c9fc8192ba79d0e1b28c76a0edbccac
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Make it consistent with Qt American style.
Change-Id: I01a70f282d654d23f2341352cf4f6fea22aa49fa
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>