Messagelib

delegate.cpp
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 #include "core/delegate.h"
10 #include "core/view.h"
11 
12 using namespace MessageList::Core;
13 
14 Delegate::Delegate(View *pParent)
15  : ThemeDelegate(pParent)
16 {
17 }
18 
19 Delegate::~Delegate() = default;
20 
21 Item *Delegate::itemFromIndex(const QModelIndex &index) const
22 {
23  return static_cast<Item *>(index.internalPointer());
24 }
void * internalPointer() const const
The MessageList::View is the real display of the message list.
Definition: view.h:47
The ThemeDelegate paints the message list view message and group items by using the supplied Theme.
Definition: themedelegate.h:30
A single item of the MessageList tree managed by MessageList::Model.
Definition: item.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.