#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),
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;
{
QLineEdit *const name_edit = new QLineEdit(parent);
name_edit->setText(_name);
- name_edit->selectAll();
- name_edit->setFocus();
connect(name_edit, SIGNAL(textChanged(const QString&)),
this, SLOT(on_text_changed(const QString&)));
form->addRow(tr("Name"), name_edit);