File indexing completed on 2024-05-12 16:02:04
0001 /* 0002 * SPDX-FileCopyrightText: 2016 Wolthera van Hovell tot Westerflier <griffinvalley@gmail.com> 0003 * SPDX-FileCopyrightText: 2018 Michael Zhou <simeirxh@gmail.com> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KISSCREENCOLORSAMPLERBASE_H 0009 #define KISSCREENCOLORSAMPLERBASE_H 0010 #include <QWidget> 0011 #include "kritawidgets_export.h" 0012 0013 class KoColor; 0014 0015 class KRITAWIDGETS_EXPORT KisScreenColorSamplerBase : public QWidget 0016 { 0017 Q_OBJECT 0018 public: 0019 KisScreenColorSamplerBase(QWidget *parent = 0) : QWidget(parent) { } 0020 virtual ~KisScreenColorSamplerBase() { } 0021 /// reloads icon(s) when theme is updated 0022 virtual void updateIcons() = 0; 0023 Q_SIGNALS: 0024 void sigNewColorSampled(KoColor); 0025 }; 0026 0027 #endif // KISSCREENCOLORSAMPLERBASE_H