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 class MessageListDelegate; 0011 class MessageListCompactLayout : public MessageListLayoutBase 0012 { 0013 public: 0014 explicit MessageListCompactLayout(MessageListDelegate *delegate); 0015 ~MessageListCompactLayout() override; 0016 0017 [[nodiscard]] MessageListLayoutBase::Layout doLayout(const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0018 [[nodiscard]] QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0019 };