ViewSolutions
|
The QMLColorPicker class - Qml wrapper for ColorPicker class. More...
#include <qmlcolorpicker.h>
Public Member Functions | |
QMLColorPicker (QObject *parent=nullptr) | |
Q_INVOKABLE QColor | pick (const QString &img) const |
pick This is override function for qml. | |
QString | modelId () const override |
instance This is singleton instance of QMLColorPicker. | |
![]() | |
iModel ()=default | |
virtual | ~iModel ()=default |
const QWeakPointer< ModelStorage > & | storage () const |
storage returns storage object. this method return context of the model's storage. | |
QQmlApplicationEngine * | engine () const |
engine returns qml engine. | |
Additional Inherited Members | |
![]() | |
virtual void | initStorage (const QWeakPointer< ModelStorage > &newStorage) |
initStorage This method is called by storage object after adding model to storage. | |
The QMLColorPicker class - Qml wrapper for ColorPicker class.
Definition at line 20 of file qmlcolorpicker.h.
|
explicit |
Definition at line 15 of file qmlcolorpicker.cpp.
|
overridevirtual |
instance This is singleton instance of QMLColorPicker.
Implements ViewSolutions::iModel.
Definition at line 70 of file qmlcolorpicker.cpp.
QColor ViewSolutions::QMLColorPicker::pick | ( | const QString & | img | ) | const |
pick This is override function for qml.
img | This is path to image. |
Definition at line 20 of file qmlcolorpicker.cpp.