QColor(0x4E, 0x9A, 0x06) // Green
};
+const QPen AnalogSignal::AxisPen(QColor(0, 0, 0, 30 * 256 / 100), 2);
const QColor AnalogSignal::GridMajorColor = QColor(0, 0, 0, 40 * 256 / 100);
const QColor AnalogSignal::GridMinorColor = QColor(0, 0, 0, 20 * 256 / 100);
display_type_(DisplayBoth),
autoranging_(true)
{
+ axis_pen_ = AxisPen;
+
pv::data::Analog* analog_data =
dynamic_cast<pv::data::Analog*>(data().get());
Q_OBJECT
private:
+ static const QPen AxisPen;
static const QColor SignalColours[4];
static const QColor GridMajorColor, GridMinorColor;
static const QColor SamplingPointColour;
Trace::Trace(shared_ptr<data::SignalBase> channel) :
base_(channel),
+ axis_pen_(AxisPen),
popup_(nullptr),
popup_form_(nullptr)
{
{
p.setRenderHint(QPainter::Antialiasing, false);
- p.setPen(AxisPen);
+ p.setPen(axis_pen_);
p.drawLine(QPointF(pp.left(), y), QPointF(pp.right(), y));
p.setRenderHint(QPainter::Antialiasing, true);