Mailcommon

invalidfilterlistitemdelegate.h
1 /*
2  SPDX-FileCopyrightText: 2015-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <KWidgetItemDelegate>
10 
11 namespace MailCommon
12 {
13 class InvalidFilterListItemDelegate : public KWidgetItemDelegate
14 {
15  Q_OBJECT
16 public:
17  explicit InvalidFilterListItemDelegate(QAbstractItemView *itemView, QObject *parent = nullptr);
18  ~InvalidFilterListItemDelegate() override;
19 
20  Q_REQUIRED_RESULT QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
21 
22  void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
23 
24  Q_REQUIRED_RESULT QList<QWidget *> createItemWidgets(const QModelIndex &) const override;
25 
26  void updateItemWidgets(const QList<QWidget *> widgets, const QStyleOptionViewItem &option, const QPersistentModelIndex &index) const override;
27 Q_SIGNALS:
28  void showDetails(const QString &details);
29 
30 private:
31  void slotShowDetails();
32 };
33 }
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Sep 24 2022 03:58:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.