summaryrefslogtreecommitdiffstats
path: root/examples/charts/gallery/pcccustomslice.h
blob: b7ab879eb9c91ea6cdccf79d23ded2bfa0859683 (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
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef PCCCUSTOMSLICE_H
#define PCCCUSTOMSLICE_H

#include <QPieSlice>

class PccCustomSlice : public QPieSlice
{
    Q_OBJECT
public:
    PccCustomSlice(const QString &label, qreal value);

public:
    QBrush originalBrush();

public slots:
    void showHighlight(bool show);

private:
    QBrush m_originalBrush;
};

#endif