Optika Development
Public Types | Public Slots | Public Member Functions
Optika::TreeView Class Reference

#include <Optika_treeview.hpp>

List of all members.

Public Types

typedef std::pair< QModelIndex,
QString > 
invalidIndex

Public Slots

void showRow (int row, const QModelIndex &parent)
void hideRow (int row, const QModelIndex &parent)
void handleBadValue (QModelIndex badValueIndex, QString message)
void checkForOtherBadValues ()

Public Member Functions

 TreeView (TreeModel *treeModel, Delegate *delegate)

Detailed Description

Class used to view TreeModels


Member Typedef Documentation

typedef std::pair<QModelIndex, QString> Optika::TreeView::invalidIndex

A pair representing an invalidIndex and why it's invalid


Constructor & Destructor Documentation

Optika::TreeView::TreeView ( TreeModel treeModel,
Delegate delegate 
)

Constructs a TreeView.

Parameters:
treeModelThe Tree Model being used with the TreeView.
delegateThe delegate to be used with the TreeView.

Member Function Documentation

void Optika::TreeView::checkForOtherBadValues ( ) [slot]

Checks to see if there are any other invalid indicies. If there are, it dequeues the next invalidIndex from the invalidIndicies queue and calls the handleBadValue function with it.

void Optika::TreeView::handleBadValue ( QModelIndex  badValueIndex,
QString  message 
) [slot]

Handles any badValue signals that might be emitted by the TreeModel.

Parameters:
badValueIndexThe index of the item with the bad value.
Abrief message explaining what happened to cause the treeitem to have an invalid value.
void Optika::TreeView::hideRow ( int  row,
const QModelIndex &  parent 
) [slot]

Used to change the visiblity of a row from shown to hidden.

Parameters:
rowThe row to be shwon.
parentThe parent of the item to be hidden.
void Optika::TreeView::showRow ( int  row,
const QModelIndex &  parent 
) [slot]

Used to change the visiblity of a row from hidden to shown.

Parameters:
rowThe row to be shwon.
parentThe parent of the item to be shown.

The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Enumerations