ViewSolutions
1.0.100.30ae2aa
View solutions of qml for quasarapp projects
Toggle main menu visibility
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
15
namespace
ViewSolutions
{
16
31
class
VIEWSOLUTION_EXPORT
QMLColorPicker
:
public
QObject,
public
iModel
,
private
ColorPicker
32
{
33
Q_OBJECT
34
public
:
35
explicit
QMLColorPicker
(QObject *parent =
nullptr
);
36
37
43
Q_INVOKABLE QColor
pick
(
const
QString &img)
const
;
44
49
QString
modelId
()
const override
;
50
51
};
52
53
}
54
#endif
// QMLCOLORPICKER_H
ViewSolutions::ColorPicker::ColorPicker
ColorPicker()
Definition
colorpicker.cpp:15
ViewSolutions::QMLColorPicker::QMLColorPicker
QMLColorPicker(QObject *parent=nullptr)
Definition
qmlcolorpicker.cpp:15
ViewSolutions::QMLColorPicker::modelId
QString modelId() const override
modelId This method returns the model id of the QMLColorPicker.
Definition
qmlcolorpicker.cpp:70
ViewSolutions::QMLColorPicker::pick
Q_INVOKABLE QColor pick(const QString &img) const
pick This is override function for qml.
Definition
qmlcolorpicker.cpp:20
ViewSolutions::iModel::iModel
iModel()=default
colorpicker.h
imodel.h
ViewSolutions
The ViewSolutions namespace.
Definition
avatargenerator.cpp:14
VIEWSOLUTION_EXPORT
#define VIEWSOLUTION_EXPORT
VIEWSOLUTION_EXPORT marks a symbol as part of the public ViewSolutions API.
Definition
viewsolutions_global.h:33
ViewSolutions
src
qmlcolorpicker.h
Generated by
1.18.0