File indexing completed on 2024-12-22 04:45:35
0001 /* 0002 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "rolestreeviewtest.h" 0008 #include "administratordialog/roles/rolestreeview.h" 0009 #include <QHeaderView> 0010 #include <QTest> 0011 QTEST_MAIN(RolesTreeViewTest) 0012 RolesTreeViewTest::RolesTreeViewTest(QObject *parent) 0013 : QObject{parent} 0014 { 0015 } 0016 0017 void RolesTreeViewTest::shouldHaveDefaultValues() 0018 { 0019 RolesTreeView w; 0020 QVERIFY(!w.rootIsDecorated()); 0021 QVERIFY(w.isSortingEnabled()); 0022 QCOMPARE(w.contextMenuPolicy(), Qt::CustomContextMenu); 0023 QVERIFY(w.header()->sectionsClickable()); 0024 } 0025 0026 #include "moc_rolestreeviewtest.cpp"