|
Krita Source Code Documentation
|
#include <KisColorPatchesTableView.h>
Inheritance diagram for KisColorPatchesTableView:Classes | |
| struct | Private |
Public Slots | |
| void | slotScrollerStateChanged (QScroller::State state) |
Public Member Functions | |
| void | addColorPatch (const KoColor &color) |
| QSize | cellSize () const |
| boost::optional< KoColor > | colorPatchAt (const QPoint &pos) const |
| QList< KoColor > | colors () const |
| KisColorPatchesTableView (const QString &configPrefix, QWidget *parent=nullptr) | |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| int | patchCount () const |
| void | reloadWidgetConfig () |
| void | setColors (const QList< KoColor > &colors) |
| void | wheelEvent (QWheelEvent *event) override |
| ~KisColorPatchesTableView () override | |
Private Member Functions | |
| void | redraw () |
Private Attributes | |
| QScopedPointer< Private > | m_d |
Definition at line 20 of file KisColorPatchesTableView.h.
| KisColorPatchesTableView::KisColorPatchesTableView | ( | const QString & | configPrefix, |
| QWidget * | parent = nullptr ) |
Definition at line 60 of file KisColorPatchesTableView.cpp.
References connect(), KisKineticScroller::createPreconfiguredScroller(), reloadWidgetConfig(), and slotScrollerStateChanged().
|
override |
Definition at line 90 of file KisColorPatchesTableView.cpp.
| QSize KisColorPatchesTableView::cellSize | ( | ) | const |
Definition at line 181 of file KisColorPatchesTableView.cpp.
References m_d.
| boost::optional< KoColor > KisColorPatchesTableView::colorPatchAt | ( | const QPoint & | pos | ) | const |
Definition at line 282 of file KisColorPatchesTableView.cpp.
References m_d, and KisColorPatches::Vertical.
Definition at line 101 of file KisColorPatchesTableView.cpp.
References m_d.
|
override |
Definition at line 226 of file KisColorPatchesTableView.cpp.
|
override |
Definition at line 231 of file KisColorPatchesTableView.cpp.
| int KisColorPatchesTableView::patchCount | ( | ) | const |
Definition at line 186 of file KisColorPatchesTableView.cpp.
References m_d.
|
private |
Definition at line 236 of file KisColorPatchesTableView.cpp.
References m_d, KoColor::toQColor(), and KisColorPatches::Vertical.
| void KisColorPatchesTableView::reloadWidgetConfig | ( | ) |
Definition at line 106 of file KisColorPatchesTableView.cpp.
References KisKineticScroller::getConfiguredGestureType(), KisColorPatches::Horizontal, m_d, redraw(), and KisColorPatches::Vertical.
Definition at line 94 of file KisColorPatchesTableView.cpp.
|
inlineslot |
Definition at line 41 of file KisColorPatchesTableView.h.
References KisKineticScroller::updateCursor().
|
override |
Definition at line 203 of file KisColorPatchesTableView.cpp.
References KisColorPatches::Horizontal, and m_d.
|
private |
Definition at line 51 of file KisColorPatchesTableView.h.