1
2// Copyright (C) 2024 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4#ifndef QQUICKFLUENTWINUI3FOCUSSTROKE_P_H
5#define QQUICKFLUENTWINUI3FOCUSSTROKE_P_H
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16#include <QtGui/qcolor.h>
17#include <QtQuick/qquickpainteditem.h>
18#include <QtCore/private/qglobal_p.h>
19QT_BEGIN_NAMESPACE
20class QQuickFluentWinUI3FocusStroke : public QQuickPaintedItem
21{
22 Q_OBJECT
23 Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
24 Q_PROPERTY(int radius READ radius WRITE setRadius FINAL)
25 QML_NAMED_ELEMENT(FocusStroke)
26 QML_ADDED_IN_VERSION(6, 8)
27public:
28 explicit QQuickFluentWinUI3FocusStroke(QQuickItem *parent = nullptr);
29 int radius() const;
30 void setRadius(int radius);
31 QColor color() const;
32 void setColor(const QColor &color);
33 void paint(QPainter *painter) override;
34private:
35 QColor m_color = Qt::white;
36 int m_radius;
37};
38QT_END_NAMESPACE
39#endif // QQUICKFLUENTWINUI3FOCUSSTROKE_P_H
40

Provided by KDAB

Privacy Policy
Start learning QML with our Intro Training
Find out more

source code of qtdeclarative/src/quickcontrols/fluentwinui3/impl/qquickfluentwinui3focusstroke_p.h