- bool ok = false;
-
- shared_ptr<view::Trace> context_trace = _context_trace;
- if (!context_trace)
- return;
-
- const QString new_label = QInputDialog::getText(this, tr("Set Name"),
- tr("Name"), QLineEdit::Normal, context_trace->get_name(), &ok);
-
- if (ok)
- context_trace->set_name(new_label);
-}
-
-void Header::on_action_set_colour_triggered()
-{
- shared_ptr<view::Trace> context_trace = _context_trace;
- if (!context_trace)
- return;