Ejemplo n.º 1
0
void UnicodeViewWidget::slotUnicodeBlockSelected( QListViewItem *item )
{
    UnicodeBlock * block = uBlockMap[ item ];

    QStringList charList;
    for ( uint d = block->getStartHex(); d < block->getEndHex(); d++ )
    {
        charList.append( QString( QChar( d ) ) );
    }

    m_charGridView->setCharacters( charList );
}
Ejemplo n.º 2
0
void UnicodeViewWidget::slotUnicodeBlockSelected()
{
    QList<QListWidgetItem *> items = m_unicodeBlockListView->selectedItems();
    if ( items.isEmpty() )
        return;
    UnicodeBlock * block = uBlockMap[ items[ 0 ] ];

    QStringList charList;
    for ( uint d = block->getStartHex(); d < block->getEndHex(); d++ )
    {
        charList.append( QString( QChar( d ) ) );
    }

    m_charGridView->setCharacters( charList );
}