File indexing completed on 2022-11-23 12:34:59

0001 /*
0002     SPDX-FileCopyrightText: 2015-2022 Laurent Montel <montel@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 
0006 */
0007 
0008 #pragma once
0009 
0010 #include "libkdebugsettings_export.h"
0011 #include <QTextEdit>
0012 class QPaintEvent;
0013 class LIBKDEBUGSETTINGS_EXPORT EnvironmentPlainTextEdit : public QTextEdit
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit EnvironmentPlainTextEdit(QWidget *parent = nullptr);
0018     ~EnvironmentPlainTextEdit() override;
0019 
0020 protected:
0021     void paintEvent(QPaintEvent *event) override;
0022 
0023     void contextMenuEvent(QContextMenuEvent *event) override;
0024 
0025 private:
0026     void slotGeneralPaletteChanged();
0027 
0028     QColor mTextColor;
0029 };