digiKam
imagepreviewitem.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 : 2011-04-27
7  * Description : image preview item for image editor.
8  *
9  * Copyright (C) 2011-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_IMAGE_PREVIEW_ITEM_H
25 #define DIGIKAM_IMAGE_PREVIEW_ITEM_H
26 
27 // Local includes
28 
29 #include "graphicsdimgitem.h"
30 #include "digikam_export.h"
31 
32 class QPainter;
33 class QStyleOptionGraphicsItem;
34 class QGraphicsSceneContextMenuEvent;
35 
36 namespace Digikam
37 {
38 
39 class DIGIKAM_EXPORT ImagePreviewItem : public GraphicsDImgItem
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit ImagePreviewItem();
46  ~ImagePreviewItem() override;
47 
48  void paint(QPainter* painter,
49  const QStyleOptionGraphicsItem* option,
50  QWidget* widget) override;
51 
52 private:
53 
54  // Disable
55  explicit ImagePreviewItem(QObject*) = delete;
56 };
57 
58 } // namespace Digikam
59 
60 #endif // DIGIKAM_IMAGE_PREVIEW_ITEM_H
Definition: dimgitems_p.h:75
Definition: imagepreviewitem.h:40
Definition: datefolderview.cpp:43