Krita Source Code Documentation
Loading...
Searching...
No Matches
KoGroupButton.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 SPDX-FileCopyrightText: 2007 Aurélien Gâteau <agateau@kde.org>
3 SPDX-FileCopyrightText: 2012 Jean-Nicolas Artaud <jeannicolasartaud@gmail.com>
4 SPDX-FileCopyrightText: 2012 Jarosław Staniek <staniek@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-only
7*/
8#ifndef KOGROUPBUTTON_H
9#define KOGROUPBUTTON_H
10
11#include "kritawidgetutils_export.h"
12
14
22class KRITAWIDGETUTILS_EXPORT KoGroupButton : public KisHighlightedToolButton
23{
24 Q_OBJECT
25 Q_ENUMS( GroupPosition )
26 Q_PROPERTY( GroupPosition groupPosition READ groupPosition WRITE setGroupPosition )
27public:
37
38 explicit KoGroupButton(GroupPosition position, QWidget* parent = 0);
39
43 explicit KoGroupButton(QWidget* parent = 0);
44
45 ~KoGroupButton() override;
46
47 void setGroupPosition(KoGroupButton::GroupPosition groupPosition);
48
50
51protected:
52 void paintEvent(QPaintEvent* event) override;
53
54private:
55 class Private;
56 Private *const d;
57};
58
59#endif /* KOGROUPBUTTON_H */
Private *const d
KoGroupButton::GroupPosition groupPosition() const
@ GroupLeft
The button is at the left of the group, so it would have rounded the left part.
@ GroupRight
The button is at the right of the group, so it would have rounded the right part.
@ NoGroup
No particular position, gives the button unchanged appearance.