We use implicit conversion. That's why check if values are still the same as

excpected.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-08-15 11:23:48 +03:00
parent cd06b70c6f
commit 882cf360e2

View File

@ -909,6 +909,11 @@ bool VDomDocument::SafeCopy(const QString &source, const QString &destination, Q
//---------------------------------------------------------------------------------------------------------------------
QVector<VLabelTemplateLine> VDomDocument::GetLabelTemplate(const QDomElement &element) const
{
// We use implicit conversion. That's why check if values are still the same as excpected.
Q_STATIC_ASSERT(Qt::AlignLeft == 1);
Q_STATIC_ASSERT(Qt::AlignRight == 2);
Q_STATIC_ASSERT(Qt::AlignHCenter == 4);
QVector<VLabelTemplateLine> lines;
if (not element.isNull())