File indexing completed on 2024-05-12 16:02:07
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2013 Jean-Nicolas Artaud <jeannicolasartaud@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KOCOLORPOPUPBUTTON_H_ 0008 #define KOCOLORPOPUPBUTTON_H_ 0009 0010 #include <QToolButton> 0011 0012 #include "kritawidgets_export.h" 0013 0014 /** 0015 * @short A widget for 0016 * 0017 */ 0018 class KRITAWIDGETS_EXPORT KoColorPopupButton: public QToolButton 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 /** 0024 * Constructor for the widget, where value is set to 0 0025 * 0026 * @param parent parent QWidget 0027 */ 0028 explicit KoColorPopupButton(QWidget *parent=0); 0029 0030 /** 0031 * Destructor 0032 */ 0033 ~KoColorPopupButton() override; 0034 0035 QSize sizeHint() const override; 0036 0037 Q_SIGNALS: 0038 /// Emitted when a resource was selected 0039 void iconSizeChanged(); 0040 0041 protected: 0042 void resizeEvent(QResizeEvent *) override; ///< reimplemented from QToolButton 0043 }; 0044 0045 #endif