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{
15
16class GeoDataPlacemark;
17class MarbleWidget;
18class SearchWidgetPrivate;
19
20class MARBLE_EXPORT SearchWidget : public QWidget
21{
22 Q_OBJECT
23public:
24 explicit SearchWidget(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
25
26 void setMarbleWidget(MarbleWidget *widget);
27
28 ~SearchWidget() override;
29
30private:
31 Q_PRIVATE_SLOT(d, void setSearchResult(const QList<GeoDataPlacemark *> &))
32 Q_PRIVATE_SLOT(d, void search(const QString &searchTerm, SearchMode searchMode))
33 Q_PRIVATE_SLOT(d, void centerMapOn(const QModelIndex &index))
34 Q_PRIVATE_SLOT(d, void handlePlanetChange())
35
36 SearchWidgetPrivate *const d;
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 Oct 11 2024 12:14:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.