Marble

SearchWidget.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2012 Dennis Nienhüser <nienhueser@kde.org>
4//
5
6#ifndef MARBLE_SEARCHWIDGET_H
7#define MARBLE_SEARCHWIDGET_H
8
9#include "marble_export.h"
10
11#include <QWidget>
12
13namespace Marble {
14
15class GeoDataPlacemark;
16class MarbleWidget;
17class SearchWidgetPrivate;
18
19class MARBLE_EXPORT SearchWidget : public QWidget
20{
21 Q_OBJECT
22public:
23 explicit SearchWidget( QWidget * parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags() );
24
25 void setMarbleWidget( MarbleWidget* widget );
26
27 ~SearchWidget() override;
28
29private:
30 Q_PRIVATE_SLOT( d, void setSearchResult( const QVector<GeoDataPlacemark*>& ) )
31 Q_PRIVATE_SLOT( d, void search( const QString &searchTerm, SearchMode searchMode ) )
32 Q_PRIVATE_SLOT( d, void centerMapOn( const QModelIndex &index ) )
33 Q_PRIVATE_SLOT( d, void handlePlanetChange() )
34
35 SearchWidgetPrivate* const d;
36
37};
38
39}
40
41#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 Fri Jun 21 2024 12:00:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.