File indexing completed on 2024-05-12 04:38:12

0001 /*
0002     SPDX-FileCopyrightText: 2010 Andreas Pakulat <apaku@gmx.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVELOP_PROJECT_TEST_PROJECTMODEL
0008 #define KDEVELOP_PROJECT_TEST_PROJECTMODEL
0009 
0010 #include <QObject>
0011 #include <QModelIndex>
0012 
0013 class ProjectProxyModel;
0014 namespace KDevelop
0015 {
0016 class ProjectModel;
0017 }
0018 
0019 class TestProjectModel : public QObject
0020 {
0021 Q_OBJECT
0022 private Q_SLOTS:
0023     void initTestCase();
0024     void init();
0025     void cleanupTestCase();
0026     void testCreateFileSystemItems();
0027     void testCreateFileSystemItems_data();
0028     void testCreateTargetItems();
0029     void testCreateTargetItems_data();
0030     void testCreateSimpleHierarchy();
0031     void testItemSanity();
0032     void testRename();
0033     void testRename_data();
0034     void testChangeWithProxyModel();
0035     void testWithProject();
0036     void testTakeRow();
0037     void testItemsForPath();
0038     void testItemsForPath_data();
0039     void testProjectProxyModel();
0040     void testProjectFileSet();
0041     void testProjectFileIcon();
0042 private:
0043     KDevelop::ProjectModel* model;
0044     ProjectProxyModel* proxy;
0045 };
0046 
0047 Q_DECLARE_METATYPE( QModelIndex )
0048 
0049 #endif