Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2015 Friedrich W. H. Kossebau <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef _KO_TOOLBOXBUTTON_H_
#define _KO_TOOLBOXBUTTON_H_
#include <QToolButton>
class KoToolAction;
class KoToolBoxButton : public QToolButton
{
Q_OBJECT
public:
explicit KoToolBoxButton(KoToolAction *toolAction, QWidget * parent);
void attachAction(QAction *action);
void setHighlightColor();
private:
void setDataFromToolAction(QAction *action); // Generates tooltips.
private Q_SLOTS:
void slotUpdateActionData();
private:
KoToolAction *m_toolAction;
};
#endif // _KO_TOOLBOXBUTTON_H_