digiKam
Loading...
Searching...
No Matches
hotpixelprops.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 : 2005-03-27
7 * Description : HotPixel properties container.
8 *
9 * SPDX-FileCopyrightText: 2005-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2005-2006 by Unai Garro <ugarro at users dot sourceforge dot net>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QRect>
21#include <QList>
22
23// Local includes
24
25#include "digikam_export.h"
26
27namespace Digikam
28{
29
30class DIGIKAM_EXPORT HotPixelProps
31{
32
33public:
34
35 QRect rect;
37
38public:
39
40 int y() const;
41 int x() const;
42 int width() const;
43 int height() const;
44
45 bool operator==(const HotPixelProps& p) const;
46
47 // Helper methods to stream container data with string.
48 QString toString() const;
49 bool fromString(const QString& str);
50
51public:
52
53 // Helper methods to stream list of containers data with string list.
54 static QStringList toStringList(const QList<HotPixelProps>& lst);
55 static QList<HotPixelProps> fromStringList(const QStringList& hplst);
56
57private:
58
59 bool diagonal(const QRect& r1, const QRect& r2) const;
60};
61
62} // namespace Digikam
Definition hotpixelprops.h:31
int luminosity
Definition hotpixelprops.h:36
QRect rect
Definition hotpixelprops.h:35
Definition datefolderview.cpp:34
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition searchtextbar.cpp:40