mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-01 03:43:46 +08:00
common/params: not copyable (#29834)
old-commit-hash: 7816edda57894c7967fcd931294a31d000e6508c
This commit is contained in:
+5
-1
@@ -15,7 +15,11 @@ enum ParamKeyType {
|
|||||||
|
|
||||||
class Params {
|
class Params {
|
||||||
public:
|
public:
|
||||||
Params(const std::string &path = {});
|
explicit Params(const std::string &path = {});
|
||||||
|
// Not copyable.
|
||||||
|
Params(const Params&) = delete;
|
||||||
|
Params& operator=(const Params&) = delete;
|
||||||
|
|
||||||
std::vector<std::string> allKeys() const;
|
std::vector<std::string> allKeys() const;
|
||||||
bool checkKey(const std::string &key);
|
bool checkKey(const std::string &key);
|
||||||
ParamKeyType getKeyType(const std::string &key);
|
ParamKeyType getKeyType(const std::string &key);
|
||||||
|
|||||||
@@ -213,7 +213,6 @@ void OnroadAlerts::paintEvent(QPaintEvent *event) {
|
|||||||
ExperimentalButton::ExperimentalButton(QWidget *parent) : experimental_mode(false), engageable(false), QPushButton(parent) {
|
ExperimentalButton::ExperimentalButton(QWidget *parent) : experimental_mode(false), engageable(false), QPushButton(parent) {
|
||||||
setFixedSize(btn_size, btn_size);
|
setFixedSize(btn_size, btn_size);
|
||||||
|
|
||||||
params = Params();
|
|
||||||
engage_img = loadPixmap("../assets/img_chffr_wheel.png", {img_size, img_size});
|
engage_img = loadPixmap("../assets/img_chffr_wheel.png", {img_size, img_size});
|
||||||
experimental_img = loadPixmap("../assets/img_experimental.svg", {img_size, img_size});
|
experimental_img = loadPixmap("../assets/img_experimental.svg", {img_size, img_size});
|
||||||
QObject::connect(this, &QPushButton::clicked, this, &ExperimentalButton::changeMode);
|
QObject::connect(this, &QPushButton::clicked, this, &ExperimentalButton::changeMode);
|
||||||
|
|||||||
Reference in New Issue
Block a user