Commit 3ffea996 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated methods

parent 45619e82
......@@ -126,8 +126,8 @@ void KanjiBrowser::loadKanji()
}
// This conversion from QList to QSet to QList, is to remove duplicated items.
gradeList = gradeList.toSet().toList();
strokeList = strokeList.toSet().toList();
gradeList = gradeList.toSet().values();
strokeList = strokeList.toSet().values();
// Sort them.
std::sort(gradeList.begin(), gradeList.end());
std::sort(strokeList.begin(), strokeList.end());
......
......@@ -172,12 +172,12 @@ void ButtonGrid::updateButtons()
QSet<Kanji> kanjiSet = m_radicalInfo->kanjiContainingRadicals( m_selectedRadicals );
//Convert to a list, sort, and tell the world!
QList<Kanji> kanjiList = kanjiSet.toList();
QList<Kanji> kanjiList = kanjiSet.values();
std::sort(kanjiList.begin(), kanjiList.end());
emit possibleKanji( kanjiList );
//Do the announcement of the selected radical list
QStringList radicalList( m_selectedRadicals.toList() );
QStringList radicalList( m_selectedRadicals.values() );
emit signalChangeStatusbar( i18n( "Selected Radicals: " )
+ radicalList.join(QLatin1String(", ") ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment