File indexing completed on 2025-01-19 03:50:37
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2009-04-19 0007 * Description : thumbnail bar for items - the delegate 0008 * 0009 * SPDX-FileCopyrightText: 2006-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de> 0010 * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_ITEM_THUMBNAIL_DELEGATE_P_H 0017 #define DIGIKAM_ITEM_THUMBNAIL_DELEGATE_P_H 0018 0019 // Qt includes 0020 0021 #include <QRect> 0022 #include <QCache> 0023 0024 // Local includes 0025 0026 #include "itemdelegate_p.h" 0027 0028 namespace Digikam 0029 { 0030 0031 class Q_DECL_HIDDEN ItemThumbnailDelegatePrivate : public ItemDelegate::ItemDelegatePrivate 0032 { 0033 public: 0034 0035 explicit ItemThumbnailDelegatePrivate() 0036 : flow(QListView::LeftToRight) 0037 { 0038 // switch off drawing of frames 0039 drawMouseOverFrame = false; 0040 drawFocusFrame = false; 0041 0042 // switch off composing rating over background 0043 ratingOverThumbnail = true; 0044 } 0045 0046 public: 0047 0048 QListView::Flow flow; 0049 QRect viewSize; 0050 0051 public: 0052 0053 void init(ItemThumbnailDelegate* const q); 0054 }; 0055 0056 } // namespace Digikam 0057 0058 #endif // DIGIKAM_ITEMS_THUMBNAIL_DELEGATE_P_H