- GVariant *const value = _getter ? _getter() : NULL;
- if (value) {
- _line_edit->setText(QString(
- g_variant_get_string(value, NULL)));
- g_variant_unref(value);
- }
+ if (auto_commit)
+ connect(line_edit_, SIGNAL(textEdited(const QString&)),
+ this, SLOT(on_text_edited(const QString&)));