Commit 3b0e3faa authored by Kurt Hindenburg's avatar Kurt Hindenburg

Simplify/correct QVERIFY()s

parent 7d9b3c16
......@@ -71,8 +71,8 @@ void ProfileTest::testProfile()
QCOMPARE(child->property<QVariant>(Profile::Path), QVariant());
// read inheritable properties
QVERIFY(parent->property<bool>(Profile::AntiAliasFonts) == false);
QVERIFY(child->property<bool>(Profile::AntiAliasFonts) == false);
QVERIFY(!parent->property<bool>(Profile::AntiAliasFonts));
QVERIFY(!child->property<bool>(Profile::AntiAliasFonts));
QVERIFY(!parent->startInCurrentSessionDir());
QVERIFY(child->startInCurrentSessionDir());
......@@ -165,7 +165,7 @@ void ProfileTest::testProfileGroup()
group->setProperty(Profile::AntiAliasFonts, false);
QCOMPARE(profile[0]->property<QString>(Profile::Command), QString("ssh"));
QVERIFY(profile[1]->property<bool>(Profile::AntiAliasFonts) == false);
QVERIFY(!profile[1]->property<bool>(Profile::AntiAliasFonts));
// set and test non-shareable properties in the group
// (should have no effect)
......
......@@ -106,7 +106,7 @@ void PartManualTest::testShortcutOverride()
}
void PartManualTest::overrideShortcut(QKeyEvent* event, bool& override)
{
QVERIFY(override == true);
QVERIFY(override);
if (event->modifiers() == Qt::ControlModifier && event->key() == Qt::Key_S) {
_overrideCalled = true;
override = _override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment