From 9018a91189995a22567be133a4b51ecf34d54f30 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Tue, 31 May 2011 22:42:26 +0200 Subject: [PATCH] [qt] Added unicode composition for text entered by user @TODO implement for other platforms too --- qt/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp index 46d835f137..4af5430589 100644 --- a/qt/mainwindow.cpp +++ b/qt/mainwindow.cpp @@ -353,8 +353,9 @@ void MainWindow::OnSearchTextChanged(QString const & str) QTableWidget * table = static_cast(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)); }