#include <QApplication>
#include <QFormLayout>
+#include <QLineEdit>
#include <QMenu>
#include <libsigrok/libsigrok.h>
for(unsigned int i = 0; i < countof(ProbeNames); i++)
_name_widget->insertItem(i, ProbeNames[i]);
_name_widget->setEditText(_probe->name);
+ _name_widget->lineEdit()->selectAll();
+ _name_widget->setFocus();
connect(_name_widget, SIGNAL(editTextChanged(const QString&)),
this, SLOT(on_text_changed(const QString&)));
{
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);