Marble

LegendWidget.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2010 Bastian Holst <[email protected]>
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 
15 namespace Marble
16 {
17 
18 class LegendWidgetPrivate;
19 
20 class MarbleModel;
21 
22 class MARBLE_EXPORT LegendWidget : public QWidget
23 {
24  Q_OBJECT
25 
26  public:
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 
36  Q_SIGNALS:
37  void propertyValueChanged( const QString &propertyName, bool value );
38  void tourLinkClicked( const QString &url );
39 
40  private:
41  Q_DISABLE_COPY( LegendWidget )
42 
43  LegendWidgetPrivate * const d;
44 };
45 
46 }
47 
48 #endif
typedef WindowFlags
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.