ViewSolutions
Loading...
Searching...
No Matches
iguitokensmodel.cpp
Go to the documentation of this file.
1//#
2//# Copyright (C) 2024-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#include "iguitokensmodel.h"
9
10namespace ViewSolutions {
11
13
14QString iGUITokensModel::modelId() const {
15 return "GUITokens";
16}
17
18QColor iGUITokensModel::addTransporent(QColor input, float alpha) const {
19 return addTransporentImpl(input, alpha);
20}
21
22QColor &iGUITokensModel::addTransporentImpl(QColor &input, float alpha) const {
23 input.setAlphaF(alpha);
24 return input;
25}
26
27}
Q_INVOKABLE QColor addTransporent(QColor input, float alpha) const
QString modelId() const
modelId returns text model id. override this method to provide access to model in qml or other models...
QColor & addTransporentImpl(QColor &input, float alpha) const
addTransporent This method add alpha chennel to the color.
the ViewSolutions namespace