Messagelib

delegate.cpp
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#include "core/delegate.h"
10#include "core/view.h"
11
12using namespace MessageList::Core;
13
14Delegate::Delegate(View *pParent)
15 : ThemeDelegate(pParent)
16{
17}
18
19Delegate::~Delegate() = default;
20
21Item *Delegate::itemFromIndex(const QModelIndex &index) const
22{
23 return static_cast<Item *>(index.internalPointer());
24}
25
26#include "moc_delegate.cpp"
The ThemeDelegate paints the message list view message and group items by using the supplied Theme.
The implementation independent part of the MessageList library.
Definition aggregation.h:22
void * internalPointer() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.