forked from organicmaps/organicmaps
[qt] Added unicode composition for text entered by user
@TODO implement for other platforms too
This commit is contained in:
parent
cf1c5cad06
commit
9018a91189
1 changed files with 3 additions and 2 deletions
|
@ -353,8 +353,9 @@ void MainWindow::OnSearchTextChanged(QString const & str)
|
|||
QTableWidget * table = static_cast<QTableWidget *>(m_Docks[3]->widget());
|
||||
table->clear();
|
||||
table->setRowCount(0);
|
||||
if (!str.isEmpty())
|
||||
m_pDrawWidget->Search(str.toUtf8().constData(),
|
||||
QString const normalized = str.normalized(QString::NormalizationForm_KC);
|
||||
if (!normalized.isEmpty())
|
||||
m_pDrawWidget->Search(normalized.toUtf8().constData(),
|
||||
bind(&MainWindow::OnSearchResult, this, _1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue