|
ViewSolutions 1.0.100.30ae2aa
View solutions of qml for quasarapp projects
|
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 |
| modelId This method returns the model id of the QMLColorPicker. | |
| Public Member Functions inherited from ViewSolutions::iModel | |
| iModel ()=default | |
| virtual | ~iModel ()=default |
| const QWeakPointer< ModelStorage > & | storage () const |
| storage returns storage object. this method return context of the model's storage. | |
| QQmlEngine * | engine () const |
| engine returns qml engine. | |
Additional Inherited Members | |
| Protected Member Functions inherited from ViewSolutions::iModel | |
| 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.
This model is registered in the model storage by ViewSolutions::init and is also available in QML as the colorPicker context property.
Example:
Definition at line 31 of file qmlcolorpicker.h.
|
explicit |
Definition at line 15 of file qmlcolorpicker.cpp.
|
overridevirtual |
modelId This method returns the model id of the 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.
