diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2017-04-04 15:47:31 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2017-04-05 07:58:08 +0000 |
commit | 49c4c061e0cd9cbbae0c911a81376f6820ce1f1e (patch) | |
tree | 5a6af24b68c3ae2cc2cc4eba105d12ec0e975801 /src/gui/text/qtextdocument.cpp | |
parent | 89302436cbd3c02cad3e73da9b20159a78bd870b (diff) |
QStaticText: mark constructor as explicit
A QStaticText object is supposed to be created and *kept* by the user,
and then used repeatedly for drawing, saving the expensive
layouting/rasterization process which would otherwise be done for each
drawText-like call.
Allowing an implicit conversion from QString is therefore surely
unwanted.
[ChangeLog][Potentially Source-Incompatible Changes][QStaticText] The
QStaticText(const QString &) constructor is now explicit.
Change-Id: Ib939a5f46638cb9a54d1cc30ff50e3a9d20be5e4
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/text/qtextdocument.cpp')
0 files changed, 0 insertions, 0 deletions