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:
treeModel The Tree Model being used with the TreeView.
delegate The 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:
badValueIndex The index of the item with the bad value.
A brief 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:
row The row to be shwon.
parent The 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:
row The row to be shwon.
parent The parent of the item to be shown.

The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Enumerations
Generated on Wed Apr 13 10:05:55 2011 for Optika by  doxygen 1.6.3