File indexing completed on 2024-12-15 04:54:36

0001 /******************************************************************************
0002  *
0003  *  SPDX-FileCopyrightText: 2008 Szymon Tomasz Stefanek <pragma@kvirc.net>
0004  *
0005  *  SPDX-License-Identifier: GPL-2.0-or-later
0006  *
0007  *******************************************************************************/
0008 
0009 #include "core/delegate.h"
0010 #include "core/view.h"
0011 
0012 using namespace MessageList::Core;
0013 
0014 Delegate::Delegate(View *pParent)
0015     : ThemeDelegate(pParent)
0016 {
0017 }
0018 
0019 Delegate::~Delegate() = default;
0020 
0021 Item *Delegate::itemFromIndex(const QModelIndex &index) const
0022 {
0023     return static_cast<Item *>(index.internalPointer());
0024 }
0025 
0026 #include "moc_delegate.cpp"