KSane

hiderectitem.h
1/*
2 * SPDX-FileCopyrightText: 2019 Alexander Volkov <a.volkov@rusbitech.ru>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#ifndef HIDERECTITEM_H
8#define HIDERECTITEM_H
9
10#include <QGraphicsRectItem>
11
12namespace KSaneIface
13{
14
15/**
16 * QGraphicsItem for hiding rects in the image viewer.
17 */
19{
20public:
22
23 QRectF rect() const;
24 void setRect(const QRectF &rect);
25
26 qreal devicePixelRatio() const;
27 void setDevicePixelRatio(qreal dpr);
28
29private:
30 qreal m_devicePixelRatio;
31};
32
33} // NameSpace KSaneIface
34
35#endif // HIDERECTITEM_H
QGraphicsItem for hiding rects in the image viewer.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.