Marble

LegendWidget.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2010 Bastian Holst <bastianholst@gmx.de>
4//
5
6#ifndef MARBLE_LEGENDWIDGET_H
7#define MARBLE_LEGENDWIDGET_H
8
9// Marble
10#include "marble_export.h"
11
12// Qt
13#include <QWidget>
14
15namespace Marble
16{
17
18class LegendWidgetPrivate;
19
20class MarbleModel;
21
22class MARBLE_EXPORT LegendWidget : public QWidget
23{
24 Q_OBJECT
25
26public:
27 explicit LegendWidget(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
28 ~LegendWidget() override;
29
30 /**
31 * @brief Set a MarbleModel associated to this widget.
32 * @param model the MarbleModel to be set.
33 */
34 void setMarbleModel(MarbleModel *model);
35
36Q_SIGNALS:
37 void propertyValueChanged(const QString &propertyName, bool value);
38 void tourLinkClicked(const QString &url);
39
40private:
41 Q_DISABLE_COPY(LegendWidget)
42
43 LegendWidgetPrivate *const d;
44};
45
46}
47
48#endif
Binds a QML item to a specific geodetic location in screen coordinates.
typedef WindowFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.