#include <kundo2model.h>
Definition at line 54 of file kundo2model.h.
◆ KUndo2Model()
| KUndo2Model::KUndo2Model |
( |
QObject * | parent = 0 | ) |
|
|
explicit |
◆ cleanIcon()
| QIcon KUndo2Model::cleanIcon |
( |
| ) |
const |
◆ columnCount()
| int KUndo2Model::columnCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ data()
| QVariant KUndo2Model::data |
( |
const QModelIndex & | index, |
|
|
int | role = Qt::DisplayRole ) const |
|
override |
◆ emptyLabel()
| QString KUndo2Model::emptyLabel |
( |
| ) |
const |
◆ index()
| QModelIndex KUndo2Model::index |
( |
int | row, |
|
|
int | column, |
|
|
const QModelIndex & | parent = QModelIndex() ) const |
|
override |
Definition at line 124 of file kundo2model.cpp.
125{
127 return QModelIndex();
128
130 return QModelIndex();
131
132 if (column != 0)
133 return QModelIndex();
134
136 return QModelIndex();
137
138 return createIndex(row, column);
139}
References KUndo2QStack::count(), m_stack, and parent().
◆ parent()
| QModelIndex KUndo2Model::parent |
( |
const QModelIndex & | child | ) |
const |
|
override |
◆ rowCount()
| int KUndo2Model::rowCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ selectedIndex()
| QModelIndex KUndo2Model::selectedIndex |
( |
| ) |
const |
◆ selectionModel()
| QItemSelectionModel * KUndo2Model::selectionModel |
( |
| ) |
const |
◆ setCleanIcon()
| void KUndo2Model::setCleanIcon |
( |
const QIcon & | icon | ) |
|
◆ setEmptyLabel()
| void KUndo2Model::setEmptyLabel |
( |
const QString & | label | ) |
|
◆ setStack
Definition at line 67 of file kundo2model.cpp.
68{
70 return;
71
76 disconnect(
m_stack, SIGNAL(indexChanged(
int)),
this, SLOT(addImage(
int)));
77 }
83 connect(
m_stack, SIGNAL(indexChanged(
int)),
this, SLOT(addImage(
int)));
84 }
85
87}
KUndo2QStack * stack() const
void stackDestroyed(QObject *obj)
References connect(), m_stack, stack(), stackChanged(), and stackDestroyed().
◆ setStackCurrentIndex
| void KUndo2Model::setStackCurrentIndex |
( |
const QModelIndex & | index | ) |
|
|
privateslot |
◆ stack()
◆ stackChanged
| void KUndo2Model::stackChanged |
( |
| ) |
|
|
privateslot |
◆ stackDestroyed
| void KUndo2Model::stackDestroyed |
( |
QObject * | obj | ) |
|
|
privateslot |
◆ m_clean_icon
| QIcon KUndo2Model::m_clean_icon |
|
private |
◆ m_empty_label
| QString KUndo2Model::m_empty_label |
|
private |
◆ m_sel_model
| QItemSelectionModel* KUndo2Model::m_sel_model |
|
private |
◆ m_stack
The documentation for this class was generated from the following files: