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 "accessibletreeviewtest.h" 0008 #include "accessibletreeview.h" 0009 #include <QTest> 0010 QTEST_MAIN(AccessibleTreeViewTest) 0011 0012 AccessibleTreeViewTest::AccessibleTreeViewTest(QObject *parent) 0013 : QObject{parent} 0014 { 0015 } 0016 0017 void AccessibleTreeViewTest::shouldHaveDefaultValues() 0018 { 0019 AccessibleTreeView w(nullptr); 0020 QVERIFY(w.alternatingRowColors()); 0021 QCOMPARE(w.selectionBehavior(), QAbstractItemView::SelectRows); 0022 QCOMPARE(w.editTriggers(), QAbstractItemView::NoEditTriggers); 0023 QCOMPARE(w.contextMenuPolicy(), Qt::CustomContextMenu); 0024 } 0025 0026 #include "moc_accessibletreeviewtest.cpp"