Class used to view TreeModels. More...
#include <Optika_treeview.hpp>
Public Types | |
Public types | |
|
typedef std::pair< QModelIndex, QString > | invalidIndex |
| A pair representing an invalidIndex and why it's invalid. | |
Public Slots | |
Public Slots | |
| void | showRow (int row, const QModelIndex &parent) |
| Used to change the visiblity of a row from hidden to shown. | |
| void | hideRow (int row, const QModelIndex &parent) |
| Used to change the visiblity of a row from shown to hidden. | |
| void | handleBadValue (QModelIndex badValueIndex, QString message) |
| Handles any badValue signals that might be emitted by the TreeModel. | |
| void | checkForOtherBadValues () |
| 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. | |
Public Member Functions | |
Constructors | |
| TreeView (TreeModel *treeModel, Delegate *delegate, QWidget *parent=0) | |
| Constructs a TreeView. | |
Class used to view TreeModels.
| Optika::TreeView::TreeView | ( | TreeModel * | treeModel, |
| Delegate * | delegate, | ||
| QWidget * | parent = 0 |
||
| ) |
Constructs a TreeView.
| treeModel | The Tree Model being used with the TreeView. |
| delegate | The delegate to be used with the TreeView. |
| parent | The parent widget. |
References checkForOtherBadValues(), handleBadValue(), Optika::TreeModel::hasDependencies(), hideRow(), Optika::TreeModel::issueInitilizationSignals(), and showRow().
| void Optika::TreeView::handleBadValue | ( | QModelIndex | badValueIndex, |
| QString | message | ||
| ) | [slot] |
Handles any badValue signals that might be emitted by the TreeModel.
| 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. |
Referenced by checkForOtherBadValues(), and TreeView().
| void Optika::TreeView::hideRow | ( | int | row, |
| const QModelIndex & | parent | ||
| ) | [slot] |
Used to change the visiblity of a row from shown to hidden.
| row | The row to be shwon. |
| parent | The parent of the item to be hidden. |
Referenced by TreeView().
| void Optika::TreeView::showRow | ( | int | row, |
| const QModelIndex & | parent | ||
| ) | [slot] |
Used to change the visiblity of a row from hidden to shown.
| row | The row to be shwon. |
| parent | The parent of the item to be shown. |
Referenced by TreeView().
1.7.6.1