digiKam
Loading...
Searching...
No Matches
blackframelistviewitem.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-07-05
7 * Description : a list view to display black frames - the item
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 <QList>
21#include <QString>
22#include <QUrl>
23#include <QTreeWidget>
24
25// Local includes
26
27#include "digikam_export.h"
28#include "hotpixelprops.h"
29
30namespace Digikam
31{
32
33class DIGIKAM_EXPORT BlackFrameListViewItem : public QObject,
34 public QTreeWidgetItem
35{
36 Q_OBJECT
37
38public:
39
41 {
42 // Columns
43 PREVIEW = 0,
44 SIZE = 1,
45 HOTPIXELS = 2,
46
47 // Thumbnail properties
48 THUMB_WIDTH = 150
49 };
50
51public:
52
53 explicit BlackFrameListViewItem(QTreeWidget* const parent, const QUrl& url);
54 ~BlackFrameListViewItem() override;
55
56 QUrl frameUrl() const;
57 QString toolTipString() const;
58
59 void emitHotPixelsParsed();
60
61Q_SIGNALS:
62
63 void signalHotPixelsParsed(const QList<HotPixelProps>&, const QUrl&);
64
65private Q_SLOTS:
66
67 void slotHotPixelsParsed(const QList<HotPixelProps>&);
68 void slotLoadingProgress(float);
69
70private:
71
72 class Private;
73 Private* const d = nullptr;
74};
75
76} // namespace Digikam
Definition blackframelistviewitem.h:35
BlackFrameConst
Definition blackframelistviewitem.h:41
void signalHotPixelsParsed(const QList< HotPixelProps > &, const QUrl &)
Definition datefolderview.cpp:34