Blokkal::Ui::CheckBoxView Class Reference
#include <checkboxview.h>
Inheritance diagram for Blokkal::Ui::CheckBoxView:
Public Member Functions | |
CheckBoxView (CheckBoxDelegate *delegate, QWidget *parent=0) | |
bool | isChecked (const QModelIndex &index) const |
void | setChecked (const QModelIndex &index, bool check) |
Protected Slots | |
virtual void | rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) |
Friends | |
class | BlogDelegate |
class | CheckBoxDelegate |
Detailed Description
short Subclass of QTreeView that provides some extra methods for qorking with checkboxesSubclass of QTreeView that provides some extra methods for qorking with checkboxes
Definition at line 37 of file checkboxview.h.
Constructor & Destructor Documentation
Blokkal::Ui::CheckBoxView::CheckBoxView | ( | CheckBoxDelegate * | delegate, | |
QWidget * | parent = 0 | |||
) |
Constructor
- Parameters:
-
delegate subclass of CheckBoxDelegate to use parent parent widget
Definition at line 50 of file checkboxview.cpp.
Member Function Documentation
bool Blokkal::Ui::CheckBoxView::isChecked | ( | const QModelIndex & | index | ) | const |
Returns whether the item at index is checked.
- Parameters:
-
index index to test
- Returns:
- TRUE if index is checked
Definition at line 68 of file checkboxview.cpp.
void Blokkal::Ui::CheckBoxView::rowsAboutToBeRemoved | ( | const QModelIndex & | parent, | |
int | start, | |||
int | end | |||
) | [protected, virtual, slot] |
Overridden to remove outdated references stored by this view
- Parameters:
-
parent parent index start first row about to be removed end last row about to be remove
Definition at line 89 of file checkboxview.cpp.
void Blokkal::Ui::CheckBoxView::setChecked | ( | const QModelIndex & | index, | |
bool | check | |||
) |
Sets the checked status of index. The checkStateHook() will not be called by this method.
- Parameters:
-
index index to apply the new state to check the new state
Definition at line 81 of file checkboxview.cpp.
The documentation for this class was generated from the following files: