ViewSolutions
Loading...
Searching...
No Matches
qmlcolorpicker.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2020-2025 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8#ifndef QMLCOLORPICKER_H
9#define QMLCOLORPICKER_H
10#include "colorpicker.h"
11
12#include <QObject>
13#include <imodel.h>
14
15namespace ViewSolutions {
16
20class VIEWSOLUTION_EXPORT QMLColorPicker : public QObject, public iModel, private ColorPicker
21{
22 Q_OBJECT
23public:
24 explicit QMLColorPicker(QObject *parent = nullptr);
25
26
32 Q_INVOKABLE QColor pick(const QString &img) const;
33
38 QString modelId() const override;
39
40};
41
42}
43#endif // QMLCOLORPICKER_H
The ColorPicker class - This class provide methods of get generals colors from images.
Definition colorpicker.h:20
The QMLColorPicker class - Qml wrapper for ColorPicker class.
The iModel class is base model for GUI models. Works with ModelStorage. All models after adding can g...
Definition imodel.h:26
the ViewSolutions namespace
#define VIEWSOLUTION_EXPORT