Messagelib

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

KDE's Doxygen guidelines are available online.