|
Krita Source Code Documentation
|
The KisQQuickWidget class. More...
#include <KisQQuickWidget.h>
Inheritance diagram for KisQQuickWidget:Public Member Functions | |
| void | connectMinimumHeightToRootObject () |
| connectMinimumHeightToRootObject By default we scale rootObject to widget, but in some situations we need the widget to have the minimum required height of the root object. This sets up a connection that links the minimum height to the root object implicitHeight. | |
| void | connectMinimumWidthToRootObject () |
| connectMinimumWidthToRootObject Same as for connectMinimumHeightToRootObject, but then for width. | |
| KisQQuickWidget (QWidget *parent=nullptr) | |
| ~KisQQuickWidget () | |
Private Slots | |
| void | setMinimumHeightFromRoot () |
| void | setMinimumWidthFromRoot () |
| void | updatePaletteFromConfig () |
The KisQQuickWidget class.
The purpose of KisQQuickWidget is to tackle a number of configuration steps that need to be taken when using the QQuickWidget, amongst which the setup of the engine.
Definition at line 20 of file KisQQuickWidget.h.
| KisQQuickWidget::KisQQuickWidget | ( | QWidget * | parent = nullptr | ) |
Our version of Qt has a special handling of the color space passed to the surface of the QQuickWidget. It will allow it to render correctly on a Rec2020PQ window.
Definition at line 22 of file KisQQuickWidget.cpp.
References connect(), KoResourcePaths::getApplicationRoot(), KisConfigNotifier::instance(), KisSurfaceColorSpaceWrapper::makeSRGBColorSpace(), palette, and updatePaletteFromConfig().
| KisQQuickWidget::~KisQQuickWidget | ( | ) |
Prevent accessing destroyed objects in QML engine See:
Definition at line 80 of file KisQQuickWidget.cpp.
| void KisQQuickWidget::connectMinimumHeightToRootObject | ( | ) |
connectMinimumHeightToRootObject By default we scale rootObject to widget, but in some situations we need the widget to have the minimum required height of the root object. This sets up a connection that links the minimum height to the root object implicitHeight.
Definition at line 89 of file KisQQuickWidget.cpp.
References connect(), and setMinimumHeightFromRoot().
| void KisQQuickWidget::connectMinimumWidthToRootObject | ( | ) |
connectMinimumWidthToRootObject Same as for connectMinimumHeightToRootObject, but then for width.
Definition at line 97 of file KisQQuickWidget.cpp.
References connect(), and setMinimumWidthFromRoot().
|
privateslot |
Definition at line 110 of file KisQQuickWidget.cpp.
|
privateslot |
Definition at line 117 of file KisQQuickWidget.cpp.
|
privateslot |
Definition at line 105 of file KisQQuickWidget.cpp.
References palette.