Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqstylekitvariation.cpp
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
7
8int QQStyleKitVariation::s_variationCount = 0;
9
10QQStyleKitVariation::QQStyleKitVariation(QObject *parent)
11 : QQStyleKitControls(parent)
12{
13 /* As an optimization, keep track of how many variations that are defined. That way
14 * we skip looking for them later if s_variationCount == 0. */
15 ++s_variationCount;
16}
17
19{
20 return m_name;
21}
22
23void QQStyleKitVariation::setName(const QString &name)
24{
25 if (m_name == name)
26 return;
27
28 m_name = name;
29 emit nameChanged();
30}
31
32QT_END_NAMESPACE
33
34#include "moc_qqstylekitvariation_p.cpp"
void setName(const QString &name)
Combined button and popup list for selecting options.