File indexing completed on 2024-05-12 04:20:39
0001 /* 0002 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 0003 * 0004 * This file is part of the KGantt library. 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #ifndef KGANTTCONSTRAINTMODEL_P_H 0010 #define KGANTTCONSTRAINTMODEL_P_H 0011 0012 #include "kganttconstraintmodel.h" 0013 0014 #include <QList> 0015 #include <QMultiHash> 0016 #include <QPersistentModelIndex> 0017 0018 namespace KGantt { 0019 class Q_DECL_HIDDEN ConstraintModel::Private { 0020 public: 0021 Private(); 0022 0023 void addConstraintToIndex( const QModelIndex& idx, const Constraint& c ); 0024 void removeConstraintFromIndex( const QModelIndex& idx, const Constraint& c ); 0025 0026 typedef QMultiHash<QPersistentModelIndex,Constraint> IndexType; 0027 0028 QList<Constraint> constraints; 0029 IndexType indexMap; 0030 }; 0031 } 0032 0033 #endif /* KGANTTCONSTRAINTMODEL_P_H */ 0034