File indexing completed on 2024-05-12 05:07:35
0001 /* 0002 SPDX-FileCopyrightText: 2015-2019 Thomas Baumgart <tbaumgart@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 0007 #ifndef ACCOUNTDELEGATE_H 0008 #define ACCOUNTDELEGATE_H 0009 0010 // ---------------------------------------------------------------------------- 0011 // QT Includes 0012 0013 #include <QStyledItemDelegate> 0014 0015 // ---------------------------------------------------------------------------- 0016 // KDE Includes 0017 0018 // ---------------------------------------------------------------------------- 0019 // Project Includes 0020 0021 #include "accountsmodel.h" 0022 #include "mymoneyenums.h" 0023 0024 class MyMoneyMoney; 0025 0026 class AccountDelegate : public QStyledItemDelegate 0027 { 0028 Q_OBJECT 0029 public: 0030 explicit AccountDelegate(QObject* parent = 0); 0031 virtual ~AccountDelegate(); 0032 0033 void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const final override; 0034 0035 private: 0036 class Private; 0037 Private * const d; 0038 }; 0039 0040 #endif // ACCOUNTDELEGATE_H 0041