File indexing completed on 2025-01-26 03:28:29

0001 /*
0002     SPDX-FileCopyrightText: 2023 Montel Laurent <montel@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "propertytreeviewtest.h"
0008 #include "propertytreeview.h"
0009 #include <QTest>
0010 QTEST_MAIN(PropertyTreeViewTest)
0011 PropertyTreeViewTest::PropertyTreeViewTest(QObject *parent)
0012     : QObject{parent}
0013 {
0014 }
0015 
0016 void PropertyTreeViewTest::shoudlHaveDefaultValues()
0017 {
0018     PropertyTreeView w;
0019     QVERIFY(!w.accessibleDescription().isEmpty());
0020     QVERIFY(!w.accessibleName().isEmpty());
0021     QVERIFY(!w.rootIsDecorated());
0022     QVERIFY(w.itemsExpandable());
0023     QVERIFY(!w.expandsOnDoubleClick());
0024     QVERIFY(w.isSortingEnabled());
0025     QCOMPARE(w.contextMenuPolicy(), Qt::CustomContextMenu);
0026 }
0027 
0028 #include "moc_propertytreeviewtest.cpp"