| 1 | /* |
| 2 | * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. |
| 3 | * |
| 4 | * This file is part of the KGantt library. |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 7 | */ |
| 8 | |
| 9 | #ifndef KGANTTSUMMARYHANDLINGPROXYMODEL_P_H |
| 10 | #define KGANTTSUMMARYHANDLINGPROXYMODEL_P_Hcxx . . $ `src/KGantt/kganttsummaryhandlingproxymodel_p.h:10:9`! |
| 11 | |
| 12 | #include "kganttsummaryhandlingproxymodel.h"cxx . . $ `<file>/src/KGantt/kganttsummaryhandlingproxymodel.h`/ |
| 13 | |
| 14 | #include <QDateTime> |
| 15 | #include <QHash> |
| 16 | #include <QPair> |
| 17 | #include <QPersistentModelIndex> |
| 18 | |
| 19 | namespace KGanttcxx . . $ KGantt/ { |
| 20 | class Q_DECL_HIDDENcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:200:13`! SummaryHandlingProxyModelcxx . . $ KGantt/SummaryHandlingProxyModel#::Privatecxx . . $ KGantt/SummaryHandlingProxyModel#Private# { |
| 21 | public: |
| 22 | bool cacheLookupcxx . . $ KGantt/SummaryHandlingProxyModel#Private#cacheLookup(df1ea4cb90afcdf9).( const QModelIndexcxx . . $ QModelIndex#& idx, |
| 23 | QPaircxx . . $ QPair#<QDateTimecxx . . $ QDateTime#,QDateTimecxx . . $ QDateTime#>* result ) const; |
| 24 | void insertInCachecxx . . $ KGantt/SummaryHandlingProxyModel#Private#insertInCache(73afabd1cbc655a1).( const SummaryHandlingProxyModelcxx . . $ KGantt/SummaryHandlingProxyModel#* model, const QModelIndexcxx . . $ QModelIndex#& idx ) const; |
| 25 | void removeFromCachecxx . . $ KGantt/SummaryHandlingProxyModel#Private#removeFromCache(5875cc9ad0026ed0).( const QModelIndexcxx . . $ QModelIndex#& idx ) const; |
| 26 | void clearCachecxx . . $ KGantt/SummaryHandlingProxyModel#Private#clearCache(83f5f38750778ac8).() const; |
| 27 | |
| 28 | inline bool isSummarycxx . . $ KGantt/SummaryHandlingProxyModel#Private#isSummary(b4ec4506a4420b60).( const QModelIndexcxx . . $ QModelIndex#& idx ) const { |
| 29 | int typ = idx.datacxx . . $ QModelIndex#data(fb36142a814bbf95).( ItemTypeRolecxx . . $ KGantt/ItemTypeRole. ).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 30 | return (typ==TypeSummarycxx . . $ KGantt/TypeSummary.) || (typ==TypeMulticxx . . $ KGantt/TypeMulti.); |
| 31 | } |
| 32 | |
| 33 | mutable QHashcxx . . $ QHash#<QModelIndexcxx . . $ QModelIndex#, QPaircxx . . $ QPair#<QDateTimecxx . . $ QDateTime#, QDateTimecxx . . $ QDateTime#> > cached_summary_itemscxx . . $ KGantt/SummaryHandlingProxyModel#Private#cached_summary_items.; |
| 34 | }; |
| 35 | } |
| 36 | |
| 37 | #endif /* KGANTTSUMMARYHANDLINGPROXYMODEL_P_H */ |
| 38 |