File indexing completed on 2024-06-16 04:46:41
0001 /* 0002 SPDX-FileCopyrightText: Bernd Gonsior <bernd.gonsior@googlemail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 #ifndef TOCITEMREPORT_H 0006 #define TOCITEMREPORT_H 0007 0008 // ---------------------------------------------------------------------------- 0009 // QT Includes 0010 0011 0012 // ---------------------------------------------------------------------------- 0013 // KDE Includes 0014 0015 0016 // ---------------------------------------------------------------------------- 0017 // Project Includes 0018 0019 #include "tocitem.h" 0020 #include "mymoneyreport.h" 0021 0022 /** 0023 * Class for report items in reports table of contents (TOC). 0024 */ 0025 class TocItemReport : public TocItem 0026 { 0027 private: 0028 0029 /** Reference to the MyMoneyReport object. */ 0030 MyMoneyReport m_report; 0031 0032 public: 0033 0034 /** Constructor. 0035 * 0036 * @param parent pointer to the parent QWidget 0037 * @param report reference to the report associated with this TOC-entry 0038 */ 0039 TocItemReport(QTreeWidgetItem* parent, MyMoneyReport& report); 0040 0041 /** Returns the report associated with this TOC-entry. */ 0042 MyMoneyReport& getReport(); 0043 }; 0044 0045 #endif