digiKam
Loading...
Searching...
No Matches
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 * SPDX-FileCopyrightText: 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Local includes
18
19#include "graphicsdimgitem.h"
20#include "digikam_export.h"
21
22class QPainter;
23class QStyleOptionGraphicsItem;
24class QGraphicsSceneContextMenuEvent;
25
26namespace Digikam
27{
28
29class DIGIKAM_EXPORT ImagePreviewItem : public GraphicsDImgItem
30{
31 Q_OBJECT
32
33public:
34
36 ~ImagePreviewItem() override = default;
37
38 void paint(QPainter* painter,
39 const QStyleOptionGraphicsItem* option,
40 QWidget* widget) override;
41
42private:
43
44 // Disable
45 explicit ImagePreviewItem(QObject*) = delete;
46};
47
48} // namespace Digikam
Definition dimgitems_p.h:73
Definition imagepreviewitem.h:30
~ImagePreviewItem() override=default
Definition datefolderview.cpp:34