Scribus
Open source desktop publishing at your fingertips
UnicodeSearchModel Class Reference

Qt4 model for QTableView used in UnicodeSearch dialog. It contains only 2 columns with hex-description pairs/rows of unicode glyphs (loaded from unicodemap/unicodenameslist.txt. Hex and descriptions are stored in QMap description+code/code for performance. More...

#include <unicodesearch.h>

Inheritance diagram for UnicodeSearchModel:
Collaboration diagram for UnicodeSearchModel:

Public Member Functions

 UnicodeSearchModel (QObject *parent=0)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
QString hexData (const QModelIndex &index)
 Return hex-key for the row of given index. See m_keys.
 
QString descriptionFromHex (const QString &hex)
 Return character unicode description from hex code.
 

Detailed Description

Qt4 model for QTableView used in UnicodeSearch dialog. It contains only 2 columns with hex-description pairs/rows of unicode glyphs (loaded from unicodemap/unicodenameslist.txt. Hex and descriptions are stored in QMap description+code/code for performance.

Author
Petr Vanek petr@.nosp@m.scri.nosp@m.bus.i.nosp@m.nfo

The documentation for this class was generated from the following files: