Device Support: Fix keyword search in settings widget.

- Add auto-detection label text.
- Fix editing artifact that led to the ampersand character not being
removed from the search string.

Change-Id: I4221083e5a8d8ebfd66d9806cf96f9f6d9714d32
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Christian Kandeler
2012-04-07 11:59:05 +02:00
parent 014ceb58b0
commit eda1e12268

View File

@@ -123,10 +123,9 @@ QString DeviceSettingsWidget::searchKeywords() const
QString rc;
QTextStream(&rc) << m_ui->configurationLabel->text()
<< ' ' << m_ui->deviceNameLabel->text()
<< ' ' << m_ui->nameLineEdit->text();
if (m_configWidget)
rc.remove(QLatin1Char('&'));
return rc;
<< ' ' << m_ui->nameLineEdit->text()
<< ' ' << m_ui->autoDetectionKeyLabel->text();
return rc.remove(QLatin1Char('&'));
}
void DeviceSettingsWidget::initGui()