File indexing completed on 2024-12-15 04:02:45

0001 /*
0002  * SPDX-FileCopyrightText: 2020 Dag Andersen <danders@get2net.dk>
0003  *
0004  * This file is part of the KGantt library.
0005  * 
0006  * SPDX-License-Identifier: LGPL-2.0-or-later
0007  */
0008 #ifndef TESTMULTIITEMS_H
0009 #define TESTMULTIITEMS_H
0010 
0011 #include <QtTest>
0012 #include <QStandardItemModel>
0013 #include <QTreeView>
0014 
0015 #include "kganttview.h"
0016 
0017 class TestMultiItems : public QObject
0018 {
0019     Q_OBJECT
0020 private:
0021     QStandardItemModel *itemModel;
0022     KGantt::View *view;
0023 
0024     void initMultiModel();
0025 
0026 private Q_SLOTS:
0027     void init();
0028     void cleanup();
0029 
0030     // default view is a treeview
0031     void testDefaultView();
0032 
0033     void testTreeView();
0034 
0035     void testListView();
0036 
0037     void testConstraints();
0038 };
0039 #endif