默认暗色模式,添加值显示开关
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <QPaintEvent>
|
||||
#include <concepts>
|
||||
#include <qsize.h>
|
||||
#include <qpoint.h>
|
||||
#include <qvector.h>
|
||||
|
||||
namespace creeper {
|
||||
@@ -39,12 +40,13 @@ class VectorPlot : public QCustomPlot {
|
||||
void ensure_arrows();
|
||||
void apply_color_scheme();
|
||||
|
||||
QSize matrix_size_{ 3, 4 };
|
||||
QVector<PointData> data_points_;
|
||||
bool initialized_ = false;
|
||||
QSize matrix_size_{ 3, 4 };
|
||||
QVector<PointData> data_points_;
|
||||
bool initialized_ = false;
|
||||
std::optional<ColorScheme> scheme_;
|
||||
QColor arrow_color_{ 16, 54, 128 }; // 深蓝色
|
||||
QCPItemLine* primary_arrow_ = nullptr;
|
||||
QColor arrow_color_{ 16, 54, 128 }; // 深蓝色
|
||||
QPointF arrow_dir_{ 0.0, 1.0 };
|
||||
QCPItemLine* primary_arrow_ = nullptr;
|
||||
|
||||
void ensure_primary_arrow();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user