File indexing completed on 2024-12-22 05:15:44
0001 /* Colorset Preview widget for KDE Display color scheme setup module 0002 SPDX-FileCopyrightText: 2008 Matthew Woehlke <mw_triad@users.sourceforge.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QFrame> 0010 #include <QPalette> 0011 0012 #include <KColorScheme> 0013 #include <KSharedConfig> 0014 0015 #include "ui_setpreview.h" 0016 0017 /** 0018 * The Desktop/Colors tab in kcontrol. 0019 */ 0020 class SetPreviewWidget : public QFrame, Ui::setpreview 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 explicit SetPreviewWidget(QWidget *parent); 0026 ~SetPreviewWidget() override; 0027 0028 void setPalette(const KSharedConfigPtr &config, KColorScheme::ColorSet); 0029 0030 protected: 0031 void setPaletteRecursive(QWidget *, const QPalette &); 0032 bool eventFilter(QObject *, QEvent *) override; 0033 };