File indexing completed on 2025-01-05 03:59:44
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2011-04-27 0007 * Description : image preview item for image editor. 0008 * 0009 * SPDX-FileCopyrightText: 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_IMAGE_PREVIEW_ITEM_H 0016 #define DIGIKAM_IMAGE_PREVIEW_ITEM_H 0017 0018 // Local includes 0019 0020 #include "graphicsdimgitem.h" 0021 #include "digikam_export.h" 0022 0023 class QPainter; 0024 class QStyleOptionGraphicsItem; 0025 class QGraphicsSceneContextMenuEvent; 0026 0027 namespace Digikam 0028 { 0029 0030 class DIGIKAM_EXPORT ImagePreviewItem : public GraphicsDImgItem 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit ImagePreviewItem(); 0037 ~ImagePreviewItem() override; 0038 0039 void paint(QPainter* painter, 0040 const QStyleOptionGraphicsItem* option, 0041 QWidget* widget) override; 0042 0043 private: 0044 0045 // Disable 0046 explicit ImagePreviewItem(QObject*) = delete; 0047 }; 0048 0049 } // namespace Digikam 0050 0051 #endif // DIGIKAM_IMAGE_PREVIEW_ITEM_H