the margins are never disabled now
fix the test Change-Id: I63d62bcf9cac45089f809a2e0ede01b067ca24b8
This commit is contained in:
parent
f278416753
commit
af207a6649
@ -65,11 +65,11 @@ void DialogNativeTest::size()
|
|||||||
|
|
||||||
QCOMPARE(m_content->width(), (qreal)100);
|
QCOMPARE(m_content->width(), (qreal)100);
|
||||||
QCOMPARE(m_content->height(), (qreal)100);
|
QCOMPARE(m_content->height(), (qreal)100);
|
||||||
QCOMPARE(m_dialog->width(), 104);
|
QCOMPARE(m_dialog->width(), 108);
|
||||||
QCOMPARE(m_dialog->height(), 104);
|
QCOMPARE(m_dialog->height(), 108);
|
||||||
|
|
||||||
QCOMPARE(m_dialog->margins()->property("left").value<qreal>(), (qreal)0.0);
|
QCOMPARE(m_dialog->margins()->property("left").value<qreal>(), (qreal)4.0);
|
||||||
QCOMPARE(m_dialog->margins()->property("top").value<qreal>(), (qreal)0.0);
|
QCOMPARE(m_dialog->margins()->property("top").value<qreal>(), (qreal)4.0);
|
||||||
QCOMPARE(m_dialog->margins()->property("right").value<qreal>(), (qreal)4.0);
|
QCOMPARE(m_dialog->margins()->property("right").value<qreal>(), (qreal)4.0);
|
||||||
QCOMPARE(m_dialog->margins()->property("bottom").value<qreal>(), (qreal)4.0);
|
QCOMPARE(m_dialog->margins()->property("bottom").value<qreal>(), (qreal)4.0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user