mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
adb8a80ff4
* OffroadHome: move experimental mode button to right column
* OffroadHome: replace DriveStats with PrimeAd when no prime
* SetupWidget: remove PrimeAd
* SetupWidget: tweaks to fit smaller space
* UI: add WiFiPromptWidget
* WiFiPrompt: update using network type
* add WiFiPromptWidget to offroad home
* reduce spacing to fit vertical space
* WiFiPromptWidget: open Wi-Fi settings
* no longer necessary
* cleanup
* shrink PrimeUser widget and increase Setup Wi-Fi font size
* correctly resize widget when stack index changes
* layout tweaks
* debug
* spacing
* slightly improved style
* helps -> help
* .
old-commit-hash: 4f815db141
24 lines
385 B
C++
24 lines
385 B
C++
#pragma once
|
|
|
|
#include <QFrame>
|
|
#include <QStackedLayout>
|
|
#include <QWidget>
|
|
|
|
#include "selfdrive/ui/ui.h"
|
|
|
|
class WiFiPromptWidget : public QFrame {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WiFiPromptWidget(QWidget* parent = 0);
|
|
|
|
signals:
|
|
void openSettings(int index = 0, const QString ¶m = "");
|
|
|
|
public slots:
|
|
void updateState(const UIState &s);
|
|
|
|
protected:
|
|
QStackedLayout *stack;
|
|
};
|