File indexing completed on 2024-12-22 04:52:47
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QListWidget> 0010 0011 class SelectProgramListWidget : public QListWidget 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit SelectProgramListWidget(QWidget *parent = nullptr); 0016 ~SelectProgramListWidget() override; 0017 0018 void setNoProgramFound(bool noProgramFound); 0019 0020 protected: 0021 void paintEvent(QPaintEvent *event) override; 0022 0023 private: 0024 void generalPaletteChanged(); 0025 QColor mTextColor; 0026 bool mNoProgramFound = false; 0027 };