File indexing completed on 2024-12-22 04:13:03
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Friedrich W. H. Kossebau <kossebau@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef _KO_TOOLBOXBUTTON_H_ 0008 #define _KO_TOOLBOXBUTTON_H_ 0009 0010 #include <QToolButton> 0011 0012 class KoToolAction; 0013 0014 class KoToolBoxButton : public QToolButton 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit KoToolBoxButton(KoToolAction *toolAction, QWidget * parent); 0019 void attachAction(QAction *action); 0020 void setHighlightColor(); 0021 0022 private: 0023 void setDataFromToolAction(QAction *action); // Generates tooltips. 0024 private Q_SLOTS: 0025 void slotUpdateActionData(); 0026 private: 0027 KoToolAction *m_toolAction; 0028 }; 0029 0030 #endif // _KO_TOOLBOXBUTTON_H_