mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-20 08:42:11 +08:00
fba42aab80
* add recent buttons * remove static request * layout * recent doesn't have to be a favorite * work * spacing * spacing * no recents * query next * not null * this needs to live here * less spacing between items old-commit-hash: 9f98a3e44f3b5b70d7e420f9e51f737bb854266d
27 lines
535 B
C++
27 lines
535 B
C++
#pragma once
|
|
#include <QJsonArray>
|
|
#include <QJsonDocument>
|
|
#include <QJsonObject>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
|
|
class MapPanel : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit MapPanel(QWidget* parent = nullptr);
|
|
|
|
void navigateTo(const QJsonObject &place);
|
|
void parseResponse(const QString &response);
|
|
void clear();
|
|
|
|
private:
|
|
QPushButton *home_button, *work_button;
|
|
QLabel *home_address, *work_address;
|
|
QVBoxLayout *recent_layout;
|
|
|
|
signals:
|
|
void closeSettings();
|
|
};
|