Akonadi Contacts

addressdelegate.h
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2019 Volker Krause <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 #include <QStyledItemDelegate>
12 
13 namespace ContactEditor
14 {
15 class AddressDelegate : public QStyledItemDelegate
16 {
17  Q_OBJECT
18 public:
19  explicit AddressDelegate(QObject *parent = nullptr);
20 
21  QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
22  void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
23 };
24 
25 }
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.