Mailcommon

invalidfilterlistitemdelegate.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <KWidgetItemDelegate>
10
11namespace MailCommon
12{
13class InvalidFilterListItemDelegate : public KWidgetItemDelegate
14{
16public:
17 explicit InvalidFilterListItemDelegate(QAbstractItemView *itemView, QObject *parent = nullptr);
18 ~InvalidFilterListItemDelegate() override;
19
20 [[nodiscard]] 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 [[nodiscard]] QList<QWidget *> createItemWidgets(const QModelIndex &) const override;
25 void updateItemWidgets(const QList<QWidget *> &widgets, const QStyleOptionViewItem &option, const QPersistentModelIndex &index) const override;
27 void showDetails(const QString &details);
28
29private:
30 void slotShowDetails();
31};
32}
QAbstractItemView * itemView() const
The filter dialog.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.