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 #pragma once 0010 0011 #include "core/themedelegate.h" 0012 0013 namespace MessageList 0014 { 0015 namespace Core 0016 { 0017 class View; 0018 0019 class Delegate : public ThemeDelegate 0020 { 0021 Q_OBJECT 0022 public: 0023 explicit Delegate(View *pParent); 0024 ~Delegate() override; 0025 0026 protected: 0027 /** 0028 * Returns the Item for the specified model index. Reimplemented from ThemeDelegate. 0029 */ 0030 [[nodiscard]] Item *itemFromIndex(const QModelIndex &index) const override; 0031 }; 0032 } // namespace Core 0033 } // namespace MessageList