blob: 979c3f1e7b9cb01194f2cbacf56a5f27149965fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "declarativecolor_p.h"
QT_BEGIN_NAMESPACE
DeclarativeColor::DeclarativeColor(QObject *parent)
: QObject(parent)
{
}
void DeclarativeColor::setColor(const QColor &color)
{
if (m_color != color) {
m_color = color;
emit colorChanged(color);
}
}
QColor DeclarativeColor::color() const
{
return m_color;
}
QT_END_NAMESPACE
|