File indexing completed on 2024-12-22 04:46:04
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "messagelistlayoutbase.h" 0010 0011 class MessageListDelegate; 0012 class MessageListCozyLayout : public MessageListLayoutBase 0013 { 0014 public: 0015 explicit MessageListCozyLayout(MessageListDelegate *delegate); 0016 ~MessageListCozyLayout() override; 0017 0018 [[nodiscard]] MessageListLayoutBase::Layout doLayout(const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0019 [[nodiscard]] QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0020 };