Blokkal
an Extendable KDE Blogging Client
SourceForge.net Logo

Blokkal::Ui::CategoryModel Class Reference

#include <categoryview.h>

Inheritance diagram for Blokkal::Ui::CategoryModel:

Blokkal::TreeModel

List of all members.


Public Types

enum  CustomRoles { SortRole = Qt::UserRole + 1 }

Public Member Functions

 CategoryModel (Blokkal::Blog *blog, QObject *parent=0)
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const

Detailed Description

short Model for categories

Model for categories

Author:
Martin Mueller <orvio@orvio.de>

Definition at line 88 of file categoryview.h.


Member Enumeration Documentation

Enumeration for custom roles to be used with data()

Enumerator:
SortRole  role to return a data type that can be used with QSortFilterProxModel

Definition at line 100 of file categoryview.h.


Constructor & Destructor Documentation

Blokkal::Ui::CategoryModel::CategoryModel ( Blokkal::Blog blog,
QObject *  parent = 0 
)

Constructor

Definition at line 41 of file categoryview.cpp.


Member Function Documentation

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

Returns the data for index

Reimplemented from Blokkal::TreeModel.

Definition at line 128 of file categoryview.cpp.


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