负反馈模型测试成功

This commit is contained in:
2026-07-30 11:21:30 +08:00
parent 84c4082e82
commit a8b2d1202b
2 changed files with 6 additions and 12 deletions
+4 -10
View File
@@ -4,20 +4,17 @@
#include <vector>
#include <atomic>
#include "../Global.h"
struct Tick{
struct Tick {
QString text;
QColor color;
double value = 0;
Tick(QString text, QColor color) : text(std::move(text)), color(std::move(color)){
QString that = (text[0] == '+' || text[0] == '-' || text[0] == '<' || text[0] == '>') ? text.mid(1) : text;
Tick(QString text, QColor color) : text(std::move(text)), color(std::move(color)) {
QString that = (this->text.startsWith('+') || this->text.startsWith('-') || this->text.startsWith('<') || this->text.startsWith('>')) ? this->text.mid(1) : this->text;
value = that.toDouble();
}
Tick(QString text, QColor color, double value) : text(std::move(text)), color(std::move(color)), value(value){
Tick(QString text, QColor color, double value) : text(std::move(text)), color(std::move(color)), value(value) {
}
};
class Progress_Bar : public QWidget {
public:
explicit Progress_Bar(const std::vector<Tick>& tick_list, QWidget *parent = nullptr);
@@ -35,6 +32,3 @@ protected:
std::vector<Tick> tick_list;
};
#endif