te::qt::widgets::PrimaryKeyItem Class Reference

#include <PrimaryKeyItem.h>

Inheritance diagram for te::qt::widgets::PrimaryKeyItem:
te::qt::widgets::AbstractDataSourceTreeItem

Public Member Functions

bool canFetchMore () const
 
int columnCount () const
 
QVariant data (int column, int role) const
 
void fetchMore ()
 
Qt::ItemFlags flags () const
 
QMenu * getMenu (QWidget *parent=0) const
 
te::da::PrimaryKeygetPrimaryKey () const
 
bool hasChildren () const
 
 PrimaryKeyItem (te::da::PrimaryKey *pk, AbstractDataSourceTreeItem *parent)
 Constructor. More...
 
bool setData (const QVariant &value, int role=Qt::EditRole)
 
 ~PrimaryKeyItem ()
 

Private Attributes

te::da::PrimaryKeym_pk
 

Detailed Description

Definition at line 40 of file PrimaryKeyItem.h.

Constructor & Destructor Documentation

◆ PrimaryKeyItem()

te::qt::widgets::PrimaryKeyItem::PrimaryKeyItem ( te::da::PrimaryKey pk,
AbstractDataSourceTreeItem parent 
)

Constructor.

Parameters
pkThe primary-key to be showned. If it is associated to a dataset the item will not take its ownership, otherwise, it will.
parentThe parent item in the tree or NULL if it is a root item.

◆ ~PrimaryKeyItem()

te::qt::widgets::PrimaryKeyItem::~PrimaryKeyItem ( )

Member Function Documentation

◆ canFetchMore()

bool te::qt::widgets::PrimaryKeyItem::canFetchMore ( ) const
virtual

◆ columnCount()

int te::qt::widgets::PrimaryKeyItem::columnCount ( ) const
virtual

◆ data()

QVariant te::qt::widgets::PrimaryKeyItem::data ( int  column,
int  role 
) const
virtual

◆ fetchMore()

void te::qt::widgets::PrimaryKeyItem::fetchMore ( )
virtual

◆ flags()

Qt::ItemFlags te::qt::widgets::PrimaryKeyItem::flags ( ) const
virtual

◆ getMenu()

QMenu* te::qt::widgets::PrimaryKeyItem::getMenu ( QWidget *  parent = 0) const
virtual

◆ getPrimaryKey()

te::da::PrimaryKey* te::qt::widgets::PrimaryKeyItem::getPrimaryKey ( ) const

◆ hasChildren()

bool te::qt::widgets::PrimaryKeyItem::hasChildren ( ) const
virtual

◆ setData()

bool te::qt::widgets::PrimaryKeyItem::setData ( const QVariant &  value,
int  role = Qt::EditRole 
)
virtual

Member Data Documentation

◆ m_pk

te::da::PrimaryKey* te::qt::widgets::PrimaryKeyItem::m_pk
private

Definition at line 76 of file PrimaryKeyItem.h.


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