File indexing completed on 2025-01-05 03:51:10

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2009-04-19
0007  * Description : Qt model-view for items - the delegate
0008  *
0009  * SPDX-FileCopyrightText: 2009-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_DIGIKAMITEM_DELEGATE_H
0016 #define DIGIKAM_DIGIKAMITEM_DELEGATE_H
0017 
0018 // Local includes
0019 
0020 #include "itemdelegate.h"
0021 
0022 namespace Digikam
0023 {
0024 
0025 class ItemCategoryDrawer;
0026 class DigikamItemDelegatePrivate;
0027 
0028 class DigikamItemDelegate : public ItemDelegate
0029 {
0030     Q_OBJECT
0031 
0032 public:
0033 
0034     explicit DigikamItemDelegate(ItemCategorizedView* parent);
0035     ~DigikamItemDelegate() override;
0036 
0037 protected:
0038 
0039     void updateRects() override;
0040 
0041     DigikamItemDelegate(DigikamItemDelegatePrivate& dd, ItemCategorizedView* parent);
0042 
0043 private:
0044 
0045     // Disable
0046     DigikamItemDelegate(QObject*) = delete;
0047 
0048 private:
0049 
0050     Q_DECLARE_PRIVATE(DigikamItemDelegate)
0051 };
0052 
0053 } // namespace Digikam
0054 
0055 #endif // DIGIKAM_DIGIKAMITEM_DELEGATE_H