You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
716 B
C++
25 lines
716 B
C++
/*
|
|
* Copyright (C) 2020 PandaOS Team.
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <KDecoration3/DecorationButton>
|
|
|
|
class Button : public KDecoration3::DecorationButton
|
|
{
|
|
public:
|
|
explicit Button(KDecoration3::DecorationButtonType type,
|
|
KDecoration3::Decoration *decoration,
|
|
QObject *parent = nullptr);
|
|
|
|
static KDecoration3::DecorationButton *create(KDecoration3::DecorationButtonType type,
|
|
KDecoration3::Decoration *decoration,
|
|
QObject *parent);
|
|
|
|
protected:
|
|
void paint(QPainter *painter, const QRectF &repaintArea) override;
|
|
};
|