43325a23f3
They have unexpected results in Qt 5 (the Qt::GlobalColor one works as expected in Qt 4, but was removed in Qt 5): QVariant v = QVariant(Qt::red); qDebug() << v; // QVariant(int, 7) v = Qt::red; qDebug() << v; // QVariant(int, 7) The correct way is to use: QVariant v = QVariant::fromValue(QColor(Qt::red)); The deleted constructors are the ones for which there is a class with an implicit constructor taking the enum, and that class is a built-in metatype. QLocale::Language and QKeySequence::StandardKey would also fit the description, but I can't include the header for QKeySequence as it is in QtGui, and I don't want to include the qlocale header in qvariant.h. Putting a QLocale::Language is probably very uncommon anyway. The QTextFormat test is doing the wrong thing, but the result isn't being tested. Added new tests which fail before the patch. Change-Id: Ia38a0784990f4d40ff7457a86daf58aabd4964eb Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> |
||
---|---|---|
.. | ||
qabstracttextdocumentlayout | ||
qcssparser | ||
qfont | ||
qfontdatabase | ||
qfontmetrics | ||
qglyphrun | ||
qrawfont | ||
qstatictext | ||
qsyntaxhighlighter | ||
qtextblock | ||
qtextcursor | ||
qtextdocument | ||
qtextdocumentfragment | ||
qtextdocumentlayout | ||
qtextformat | ||
qtextlayout | ||
qtextlist | ||
qtextobject | ||
qtextodfwriter | ||
qtextpiecetable | ||
qtextscriptengine | ||
qtexttable | ||
qzip | ||
text.pro |