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 0006 #include "tocitemreport.h" 0007 0008 // ---------------------------------------------------------------------------- 0009 // QT Includes 0010 0011 // ---------------------------------------------------------------------------- 0012 // KDE Includes 0013 0014 // ---------------------------------------------------------------------------- 0015 // Project Includes 0016 0017 TocItemReport::TocItemReport(QTreeWidgetItem* parent, MyMoneyReport& report): 0018 TocItem(parent, QStringList() << report.name() << report.comment()) 0019 { 0020 m_report = report; 0021 0022 type = TocItem::REPORT; 0023 0024 QString tocTyp = QString::number(type); 0025 QString id = report.name(); 0026 0027 QStringList key; 0028 key << tocTyp << id; 0029 0030 QVariant data(key); 0031 this->setData(0, Qt::UserRole, data); 0032 } 0033 0034 MyMoneyReport& TocItemReport::getReport() 0035 { 0036 return m_report; 0037 }