digiKam
Loading...
Searching...
No Matches
dactivelabel.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 : 2014-09-12
7 * Description : A label with an active url
8 *
9 * SPDX-FileCopyrightText: 2014-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// Qt includes
18
19#include <QLabel>
20#include <QUrl>
21#include <QString>
22#include <QImage>
23
24// Local includes
25
26#include "digikam_export.h"
27
28namespace Digikam
29{
30
35class DIGIKAM_EXPORT DActiveLabel : public QLabel
36{
37 Q_OBJECT
38
39public:
40
41 explicit DActiveLabel(const QUrl& url = QUrl(),
42 const QString& imgPath = QString(),
43 QWidget* const parent = nullptr);
44 ~DActiveLabel() override = default;
45
46 void updateData(const QUrl& url, const QImage& img);
47};
48
49} // namespace Digikam
Definition dactivelabel.h:36
~DActiveLabel() override=default
Definition datefolderview.cpp:34