Differential D14540 Diff 39044 kmymoney/widgets/payeeidentifier/nationalaccount/nationalaccountdelegate.h
Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/widgets/payeeidentifier/nationalaccount/nationalaccountdelegate.h
- This file was moved from kmymoney/payeeidentifier/nationalaccount/ui/nationalaccountdelegate.h.
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * This file is part of KMyMoney, A Personal Finance Manager by KDE | 2 | * Copyright 2014-2015 Christian Dávid <christian-david@web.de> | ||
3 | * Copyright (C) 2014 Christian Dávid <christian-david@web.de> | | |||
4 | * | 3 | * | ||
5 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License | 5 | * modify it under the terms of the GNU General Public License as | ||
7 | * as published by the Free Software Foundation; either version 2 | 6 | * published by the Free Software Foundation; either version 2 of | ||
8 | * of the License, or (at your option) any later version. | 7 | * the License, or (at your option) any later version. | ||
9 | * | 8 | * | ||
10 | * This program is distributed in the hope that it will be useful, | 9 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | 12 | * GNU General Public License for more details. | ||
14 | * | 13 | * | ||
15 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | 16 | */ | ||
18 | 17 | | |||
19 | #ifndef NATIONALACCOUNTDELEGATE_H | 18 | #ifndef NATIONALACCOUNTDELEGATE_H | ||
20 | #define NATIONALACCOUNTDELEGATE_H | 19 | #define NATIONALACCOUNTDELEGATE_H | ||
21 | 20 | | |||
21 | #include "kmm_widgets_export.h" | ||||
22 | | ||||
22 | #include <QStyledItemDelegate> | 23 | #include <QStyledItemDelegate> | ||
23 | 24 | | |||
24 | #include "payeeidentifier/nationalaccount/nationalaccount.h" | 25 | #include "payeeidentifier/nationalaccount/nationalaccount.h" | ||
25 | #include "payeeidentifier/payeeidentifiertyped.h" | 26 | #include "payeeidentifier/payeeidentifiertyped.h" | ||
26 | 27 | | |||
27 | class nationalAccountDelegate : public QStyledItemDelegate | 28 | class KMM_WIDGETS_EXPORT nationalAccountDelegate : public QStyledItemDelegate | ||
28 | { | 29 | { | ||
29 | Q_OBJECT | 30 | Q_OBJECT | ||
30 | public: | 31 | public: | ||
31 | explicit nationalAccountDelegate(QObject* parent, const QVariantList& options = QVariantList()); | 32 | explicit nationalAccountDelegate(QObject* parent, const QVariantList& options = QVariantList()); | ||
32 | 33 | | |||
33 | void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const final override; | 34 | void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const final override; | ||
34 | QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const final override; | 35 | QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const final override; | ||
35 | QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const final override; | 36 | QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const final override; | ||
Show All 13 Lines |