Messagelib

delegate.h
1/******************************************************************************
2 *
3 * SPDX-FileCopyrightText: 2008 Szymon Tomasz Stefanek <pragma@kvirc.net>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 *
7 *******************************************************************************/
8
9#pragma once
10
11#include "core/themedelegate.h"
12
13namespace MessageList
14{
15namespace Core
16{
17class View;
18
19class Delegate : public ThemeDelegate
20{
22public:
23 explicit Delegate(View *pParent);
24 ~Delegate() override;
25
26protected:
27 /**
28 * Returns the Item for the specified model index. Reimplemented from ThemeDelegate.
29 */
30 [[nodiscard]] Item *itemFromIndex(const QModelIndex &index) const override;
31};
32} // namespace Core
33} // namespace MessageList
Q_OBJECTQ_OBJECT
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 7 2024 11:58:34 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.