#include <KisUndoModel.h>
Definition at line 56 of file KisUndoModel.h.
◆ KisUndoModel()
| KisUndoModel::KisUndoModel |
( |
QObject * | parent = 0 | ) |
|
◆ addImage
| void KisUndoModel::addImage |
( |
int | idx | ) |
|
|
slot |
Definition at line 249 of file KisUndoModel.cpp.
250{
251
253 return;
254 }
255
266 }
267
269
272 }
273
274 for (QMap<const KUndo2Command*, QImage>:: iterator it =
m_imageMap.begin(); it !=
m_imageMap.end();) {
275 if (!list.contains(it.key())) {
277 }
278 else {
279 ++it;
280 }
281 }
282}
const KUndo2Command * command(int index) const
KisPaintDeviceSP projection() const
QImage createThumbnail(qint32 maxw, qint32 maxh, QRect rect, qreal oversample=1, KoColorConversionTransformation::Intent renderingIntent=KoColorConversionTransformation::internalRenderingIntent(), KoColorConversionTransformation::ConversionFlags conversionFlags=KoColorConversionTransformation::internalConversionFlags())
qreal m_devicePixelRatioF
QMap< const KUndo2Command *, QImage > m_imageMap
int size(const Forest< T > &forest)
References KUndo2QStack::command(), KUndo2QStack::count(), KisPaintDevice::createThumbnail(), KoColorConversionTransformation::internalConversionFlags(), KoColorConversionTransformation::internalRenderingIntent(), m_canvas, m_devicePixelRatioF, m_imageMap, m_stack, and KisImage::projection().
◆ checkMergedCommand()
| bool KisUndoModel::checkMergedCommand |
( |
int | index | ) |
|
Definition at line 283 of file KisUndoModel.cpp.
284{
286 return false;
287}
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
References index().
◆ cleanIcon()
| QIcon KisUndoModel::cleanIcon |
( |
| ) |
const |
◆ columnCount()
| int KisUndoModel::columnCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ data()
| QVariant KisUndoModel::data |
( |
const QModelIndex & | index, |
|
|
int | role = Qt::DisplayRole ) const |
|
override |
◆ emptyLabel()
| QString KisUndoModel::emptyLabel |
( |
| ) |
const |
◆ index()
| QModelIndex KisUndoModel::index |
( |
int | row, |
|
|
int | column, |
|
|
const QModelIndex & | parent = QModelIndex() ) const |
|
override |
Definition at line 137 of file KisUndoModel.cpp.
138{
140 return QModelIndex();
141
143 return QModelIndex();
144
145 if (column != 0)
146 return QModelIndex();
147
149 return QModelIndex();
150
151 return createIndex(row, column);
152}
References KUndo2QStack::count(), m_stack, and parent().
◆ parent()
| QModelIndex KisUndoModel::parent |
( |
const QModelIndex & | child | ) |
const |
|
override |
◆ rowCount()
| int KisUndoModel::rowCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ selectedIndex()
| QModelIndex KisUndoModel::selectedIndex |
( |
| ) |
const |
◆ selectionModel()
| QItemSelectionModel * KisUndoModel::selectionModel |
( |
| ) |
const |
◆ setCanvas()
◆ setCleanIcon()
| void KisUndoModel::setCleanIcon |
( |
const QIcon & | icon | ) |
|
◆ setDevicePixelRatio()
| void KisUndoModel::setDevicePixelRatio |
( |
qreal | devicePixelRatio | ) |
|
◆ setEmptyLabel()
| void KisUndoModel::setEmptyLabel |
( |
const QString & | label | ) |
|
◆ setStack
◆ setStackCurrentIndex
| void KisUndoModel::setStackCurrentIndex |
( |
const QModelIndex & | index | ) |
|
|
privateslot |
◆ stack()
◆ stackChanged
| void KisUndoModel::stackChanged |
( |
| ) |
|
|
privateslot |
◆ stackDestroyed
| void KisUndoModel::stackDestroyed |
( |
QObject * | obj | ) |
|
|
privateslot |
◆ m_blockOutgoingHistoryChange
| bool KisUndoModel::m_blockOutgoingHistoryChange {false} |
|
private |
◆ m_canvas
◆ m_clean_icon
| QIcon KisUndoModel::m_clean_icon |
|
private |
◆ m_devicePixelRatioF
| qreal KisUndoModel::m_devicePixelRatioF {1.0} |
|
private |
◆ m_empty_label
| QString KisUndoModel::m_empty_label |
|
private |
◆ m_imageMap
◆ m_sel_model
| QItemSelectionModel* KisUndoModel::m_sel_model {0} |
|
private |
◆ m_stack
The documentation for this class was generated from the following files: