File indexing completed on 2024-12-01 04:36:37
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QItemDelegate> 0010 class AvatarCacheManager; 0011 class RocketChatAccount; 0012 class UserAndChannelCompletionDelegate : public QItemDelegate 0013 { 0014 public: 0015 explicit UserAndChannelCompletionDelegate(QObject *parent = nullptr); 0016 ~UserAndChannelCompletionDelegate() override; 0017 0018 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0019 0020 void setRocketChatAccount(RocketChatAccount *newRocketChatAccount); 0021 0022 private: 0023 AvatarCacheManager *const mAvatarCacheManager; 0024 };