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 }
26 
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jun 23 2021 23:09:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.