blob: 346dc24c71452cc41c9da9935537ae9897b53614 (
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
27
28
29
30
31
32
33
34
|
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qqstylekitvariation_p.h"
QT_BEGIN_NAMESPACE
int QQStyleKitVariation::s_variationCount = 0;
QQStyleKitVariation::QQStyleKitVariation(QObject *parent)
: QQStyleKitControls(parent)
{
/* As an optimization, keep track of how many variations that are defined. That way
* we skip looking for them later if s_variationCount == 0. */
++s_variationCount;
}
QString QQStyleKitVariation::name() const
{
return m_name;
}
void QQStyleKitVariation::setName(const QString &name)
{
if (m_name == name)
return;
m_name = name;
emit nameChanged();
}
QT_END_NAMESPACE
#include "moc_qqstylekitvariation_p.cpp"
|