#include <QApplication>
#include <QFormLayout>
+#include <QKeyEvent>
#include <QLineEdit>
#include "trace.h"
const int Trace::LabelHitPadding = 2;
Trace::Trace(QString name) :
+ _view(NULL),
_name(name),
_v_offset(0),
_popup(NULL),
(void)left;
const QRectF label = get_label_rect(right);
- return QRectF(
+ return enabled() && QRectF(
QPointF(label.left() - LabelHitPadding,
label.top() - LabelHitPadding),
QPointF(right, label.bottom() + LabelHitPadding)
label_size.width(), label_size.height());
}
+void Trace::hover_point_changed()
+{
+}
+
QColor Trace::get_text_colour() const
{
return (_colour.lightness() > 64) ? Qt::black : Qt::white;