File indexing completed on 2024-06-02 05:31:06

0001 /*
0002   SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "pimcommonakonadi_private_export.h"
0010 #include <QListView>
0011 namespace PimCommon
0012 {
0013 class PIMCOMMONAKONADI_TESTS_EXPORT AclListView : public QListView
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit AclListView(QWidget *parent = nullptr);
0018     ~AclListView() override;
0019 
0020 public Q_SLOTS:
0021     void slotCollectionCanBeAdministrated(bool b);
0022 
0023 protected:
0024     void paintEvent(QPaintEvent *event) override;
0025 
0026 private:
0027     void generalPaletteChanged();
0028     QColor mTextColor;
0029     bool mCanBeAdministrated = true;
0030 };
0031 }