File indexing completed on 2024-05-19 05:07:24
0001 /* 0002 SPDX-FileCopyrightText: 2012 Alessandro Russo <axela74@yahoo.it> 0003 SPDX-FileCopyrightText: 2017-2018 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef MYMONEYTAG_P_H 0008 #define MYMONEYTAG_P_H 0009 0010 // ---------------------------------------------------------------------------- 0011 // QT Includes 0012 0013 #include <QHash> 0014 #include <QString> 0015 #include <QColor> 0016 0017 // ---------------------------------------------------------------------------- 0018 // Project Includes 0019 0020 #include "mymoneyobject_p.h" 0021 0022 class MyMoneyTagPrivate : public MyMoneyObjectPrivate 0023 { 0024 public: 0025 MyMoneyTagPrivate() 0026 : m_closed(false) 0027 , m_tag_color(QColor("black")) 0028 { 0029 } 0030 0031 MyMoneyTagPrivate(const MyMoneyTagPrivate& d) 0032 : MyMoneyObjectPrivate(d) 0033 , m_name(d.m_name) 0034 , m_closed(d.m_closed) 0035 , m_tag_color(d.m_tag_color) 0036 , m_notes(d.m_notes) 0037 { 0038 } 0039 0040 void collectReferencedObjects() override 0041 { 0042 } 0043 0044 // Simple fields 0045 QString m_name; 0046 // Closed tags will not be shown in the selector inside a transaction, only in the Tag tab 0047 bool m_closed; 0048 // Set the color showed in the ledger 0049 QColor m_tag_color; 0050 QString m_notes; 0051 }; 0052 0053 #endif