mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-20 01:13:55 +08:00
* add image * remove extra spacing * add images * use nav-settings-square-smaller.png * draft * clean up * kinda works! * nop need to update state * can just use clicked * MORE * remove old button * slightly smaller (todo change image)) * this works but is ugly * remove old settings button * draft * no it's not * draft 2.0 * clean up * clean up * let's make map_settings_btn public * since we don't have map, use enabled * fix image size * can do clean up in another PR show * add line * rename * useless spacing * use old nav icon * handle DM icon (and test) * clean up * no reason * remove old image * don't use setCurrentIndex * Revert "don't use setCurrentIndex" This reverts commit 6fde765a3cd3a9ee39205614587a23fbfbc60950. * also can use a ternary * seems cleanest This reverts commit f9287230704b94f46b6bb5376d9a17075a20caf7.
22 lines
343 B
C++
22 lines
343 B
C++
#pragma once
|
|
|
|
#include <QFrame>
|
|
#include <QMapboxGL>
|
|
#include <QStackedLayout>
|
|
|
|
class MapPanel : public QFrame {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MapPanel(const QMapboxGLSettings &settings, QWidget *parent = nullptr);
|
|
|
|
signals:
|
|
void mapPanelRequested();
|
|
|
|
public slots:
|
|
void toggleMapSettings();
|
|
|
|
private:
|
|
QStackedLayout *content_stack;
|
|
};
|