mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
Lint
This commit is contained in:
+6
-5
@@ -4,13 +4,14 @@
|
||||
#include "UI_item.hpp"
|
||||
#define UI_PLOT_TYPE std::string("UI_plot")
|
||||
|
||||
class UI_plot : public UI_item {
|
||||
class UI_plot : public UI_item
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit UI_plot(QObject* parent = nullptr);
|
||||
explicit UI_plot(QObject *parent = nullptr);
|
||||
UI_plot(std::string text, std::string x_label, std::string y_label, QObject *parent = nullptr);
|
||||
UI_plot(const json &j, QObject *parent = nullptr);
|
||||
\
|
||||
|
||||
void set_x_label(std::string name);
|
||||
std::string x_label() const;
|
||||
void set_y_label(std::string name);
|
||||
@@ -26,8 +27,8 @@ class UI_plot : public UI_item {
|
||||
json to_json(size_t id) const override;
|
||||
|
||||
private:
|
||||
std::vector<double>m_x_vals;
|
||||
std::vector<double>m_y_vals;
|
||||
std::vector<double> m_x_vals;
|
||||
std::vector<double> m_y_vals;
|
||||
std::string m_x_label;
|
||||
std::string m_y_label;
|
||||
bool m_x_label_enabled;
|
||||
|
||||
Reference in New Issue
Block a user