|
Krita Source Code Documentation
|
#include <channelmodel.h>
Inheritance diagram for ChannelModel:Public Slots | |
| void | rowActivated (const QModelIndex &index) |
| void | slotColorSpaceChanged (const KoColorSpace *colorSpace) |
Signals | |
| void | channelFlagsChanged () |
Public Member Functions | |
| ChannelModel (QObject *parent=0) | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| void | setCanvas (KisCanvas2 *canvas) |
| void | setChannelThumbnails (const QVector< QImage > &channels, const KoColorSpace *cs) |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| void | setThumbnailSizeLimit (QSize size) |
| QSize | thumbnailSizeLimit () const |
| ~ChannelModel () override | |
Private Attributes | |
| QPointer< KisCanvas2 > | m_canvas |
| KisSignalAutoConnectionsStore | m_canvasConnections |
| int | m_channelCount |
| int | m_oversampleRatio |
| QVector< QImage > | m_thumbnails |
| QSize | m_thumbnailSizeLimit |
Definition at line 21 of file channelmodel.h.
| ChannelModel::ChannelModel | ( | QObject * | parent = 0 | ) |
Definition at line 22 of file channelmodel.cpp.
References setThumbnailSizeLimit().
|
override |
Definition at line 31 of file channelmodel.cpp.
|
signal |
|
override |
Definition at line 93 of file channelmodel.cpp.
References m_canvas.
|
override |
Definition at line 35 of file channelmodel.cpp.
References KoColorSpace::channelCount(), KisLayer::channelFlags, KoColorSpace::channels, KisGroupLayer::colorSpace(), columnCount(), flags(), m_canvas, m_channelCount, m_thumbnails, and rowCount().
|
override |
Definition at line 161 of file channelmodel.cpp.
References flags().
|
override |
Definition at line 80 of file channelmodel.cpp.
|
slot |
Definition at line 132 of file channelmodel.cpp.
References KoChannelInfo::ALPHA, KoColorSpace::channelCount(), KoColorSpace::channelFlags(), channelFlagsChanged(), KoColorSpace::channels, flags(), m_canvas, and m_channelCount.
|
override |
Definition at line 86 of file channelmodel.cpp.
References m_canvas, and m_channelCount.
| void ChannelModel::setCanvas | ( | KisCanvas2 * | canvas | ) |
Definition at line 167 of file channelmodel.cpp.
References KisSignalAutoConnectionsStore::addConnection(), KisSignalAutoConnectionsStore::clear(), m_canvas, m_canvasConnections, and slotColorSpaceChanged().
| void ChannelModel::setChannelThumbnails | ( | const QVector< QImage > & | channels, |
| const KoColorSpace * | cs ) |
Definition at line 181 of file channelmodel.cpp.
References KoColorSpace::channelCount(), m_canvas, m_channelCount, and m_thumbnails.
|
override |
Definition at line 101 of file channelmodel.cpp.
References KoColorSpace::channelCount(), KisLayer::channelFlags, KoColorSpace::channelFlags(), channelFlagsChanged(), KoColorSpace::channels, KisGroupLayer::colorSpace(), flags(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, m_canvas, m_channelCount, KisLayer::setChannelFlags(), and value().
| void ChannelModel::setThumbnailSizeLimit | ( | QSize | size | ) |
|
slot |
Definition at line 203 of file channelmodel.cpp.
References setChannelThumbnails().
| QSize ChannelModel::thumbnailSizeLimit | ( | ) | const |
Definition at line 213 of file channelmodel.cpp.
References m_thumbnailSizeLimit.
|
private |
Definition at line 50 of file channelmodel.h.
|
private |
Definition at line 55 of file channelmodel.h.
|
private |
Definition at line 56 of file channelmodel.h.
|
private |
Definition at line 54 of file channelmodel.h.
|
private |
Definition at line 51 of file channelmodel.h.
|
private |
Definition at line 53 of file channelmodel.h.