Home · Modules · Classes · Namespaces · Functions

QxtCountryModel Class Reference
[QxtGui module]

The QxtCountryModel class is a subclass of QAbstractTableModel to display country data. More...

    #include <QxtCountryModel>

Inherits QAbstractTableModel.

Public Functions

Additional Inherited Members


Detailed Description

The QxtCountryModel class is a subclass of QAbstractTableModel to display country data.

QxtCountryModel is a specialized QAbstractTableModel to display countries. The countries are taken from QLocale::Country.

"QxtCountryModel in a QTableView in Plastique style."


Member Function Documentation

QxtCountryModel::QxtCountryModel ( QObject * parent = 0 )

Constructs a new QxtCountryModel with parent.

QxtCountryModel::~QxtCountryModel ()

Destructs the country model.

int QxtCountryModel::columnCount ( const QModelIndex & parent ) const   [virtual]

Returns the number of columns parent in the model.

Reimplemented from QAbstractItemModel.

QVariant QxtCountryModel::data ( const QModelIndex & index, int role = Qt::DisplayRole ) const   [virtual]

Returns the data for the given index for a specific role.

Reimplemented from QAbstractItemModel.

QVariant QxtCountryModel::headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const   [virtual]

Returns the column or row name for the given section in orientation for a sepcific role.

Reimplemented from QAbstractItemModel.

int QxtCountryModel::rowCount ( const QModelIndex & parent ) const   [virtual]

Returns the number of countries for parent in the model.

Reimplemented from QAbstractItemModel.


Copyright © 2007-2010 Qxt Foundation
Qxt 0.6.1