82a6d74d创建于 2025年4月30日历史提交
#ifndef SIMULATION_H
#define SIMULATION_H
#include "component.h"
#include <QString>

namespace qucs::component {
class SimulationComponent : public Component {
private:
     QString label_text;
     void updateComponentBounds(const QRect& label_bounds);
     QPen pen() const;
protected:
     void initSymbol(const QString& label);
     void drawSymbol(QPainter* p) override;
     // Override in your subclass if you want other color
     // for your simulation component
     virtual Qt::GlobalColor color() const { return Qt::darkBlue; }
};
}
#endif