Optika GUI Toolik
Version of the Day
|
Class used to view TreeModels. More...
#include <Optika_treeview.hpp>
Inherits QTreeView.
Public types | |
typedef std::pair< QModelIndex, QString > | invalidIndex |
A pair representing an invalidIndex and why it's invalid. More... | |
Constructors | |
TreeView (TreeModel *treeModel, Delegate *delegate, QWidget *parent=0) | |
Constructs a TreeView. More... | |
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. More... | |
Private Members | |
QQueue< invalidIndex > | invalidInicies |
A Queue containing any invalid indicies that need to be delt with. More... | |
Class used to view TreeModels.
Definition at line 59 of file Optika_treeview.hpp.
typedef std::pair<QModelIndex, QString> Optika::TreeView::invalidIndex |
A pair representing an invalidIndex and why it's invalid.
Definition at line 68 of file Optika_treeview.hpp.
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. |
Definition at line 46 of file Optika_treeview.cpp.
|
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. |
Definition at line 60 of file Optika_treeview.cpp.
|
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. |
Definition at line 66 of file Optika_treeview.cpp.
|
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. |
Definition at line 72 of file Optika_treeview.cpp.
|
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.
Definition at line 83 of file Optika_treeview.cpp.
|
private |
A Queue containing any invalid indicies that need to be delt with.
Definition at line 135 of file Optika_treeview.hpp.