+ const int index = name_widget_->findText(name_, Qt::MatchExactly);
+
+ if (index == -1) {
+ name_widget_->insertItem(0, name_);
+ name_widget_->setCurrentIndex(0);
+ } else {
+ name_widget_->setCurrentIndex(index);
+ }
+
+ connect(name_widget_, SIGNAL(editTextChanged(const QString&)),