Krita Source Code Documentation
Loading...
Searching...
No Matches
KoToolBoxButton_p.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Friedrich W. H. Kossebau <kossebau@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef _KO_TOOLBOXBUTTON_H_
8#define _KO_TOOLBOXBUTTON_H_
9
10#include <QToolButton>
11
12class KoToolAction;
13
14class KoToolBoxButton : public QToolButton
15{
16 Q_OBJECT
17public:
18 explicit KoToolBoxButton(KoToolAction *toolAction, QWidget * parent);
19 void attachAction(QAction *action);
20 void setHighlightColor();
21
22private:
23 void setDataFromToolAction(QAction *action); // Generates tooltips.
24private Q_SLOTS:
26private:
28};
29
30#endif // _KO_TOOLBOXBUTTON_H_
void setDataFromToolAction(QAction *action)
KoToolBoxButton(KoToolAction *toolAction, QWidget *parent)
void attachAction(QAction *action)
KoToolAction * m_toolAction