digiKam
itemthumbnaildelegate_p.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2009-04-19
7  * Description : thumbnail bar for items - the delegate
8  *
9  * Copyright (C) 2006-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_ITEM_THUMBNAIL_DELEGATE_P_H
26 #define DIGIKAM_ITEM_THUMBNAIL_DELEGATE_P_H
27 
28 // Qt includes
29 
30 #include <QRect>
31 #include <QCache>
32 
33 // Local includes
34 
35 #include "itemdelegate_p.h"
36 
37 namespace Digikam
38 {
39 
41 {
42 public:
43 
45  : flow(QListView::LeftToRight)
46  {
47  // switch off drawing of frames
48  drawMouseOverFrame = false;
49  drawFocusFrame = false;
50 
51  // switch off composing rating over background
52  ratingOverThumbnail = true;
53  }
54 
55 public:
56 
57  QListView::Flow flow;
58  QRect viewSize;
59 
60 public:
61 
62  void init(ItemThumbnailDelegate* const q);
63 };
64 
65 } // namespace Digikam
66 
67 #endif // DIGIKAM_ITEMS_THUMBNAIL_DELEGATE_P_H
Definition: itemdelegate_p.h:45
Definition: itemthumbnaildelegate_p.h:41
QListView::Flow flow
Definition: itemthumbnaildelegate_p.h:57
ItemThumbnailDelegatePrivate()
Definition: itemthumbnaildelegate_p.h:44
QRect viewSize
Definition: itemthumbnaildelegate_p.h:58
Definition: itemthumbnaildelegate.h:43
Definition: datefolderview.cpp:43