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. More... | |
void | hideRow (int row, const QModelIndex &parent) |
Used to change the visiblity of a row from shown to hidden. More... | |
void | handleBadValue (QModelIndex badValueIndex, QString message) |
Handles any badValue signals that might be emitted by the TreeModel. More... | |
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. More... | |
Class used to view TreeModels.
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().
|
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().
|
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().
|
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().