File indexing completed on 2024-05-05 14:27:51
0001 /* 0002 SPDX-FileCopyrightText: 2006 Bram Schoenmakers <bramschoenmakers@kde.nl> 0003 SPDX-FileCopyrightText: 2007 Tom Albers <toma@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef RSISTATWIDGET_H 0009 #define RSISTATWIDGET_H 0010 0011 #include "rsiglobals.h" 0012 0013 class QGridLayout; 0014 0015 class RSIStatWidget : public QWidget 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit RSIStatWidget(QWidget *parent = nullptr); 0020 ~RSIStatWidget(); 0021 0022 protected: 0023 void addStat(RSIStat stat, QGridLayout *grid, int row); 0024 void showEvent(QShowEvent *) override; 0025 void hideEvent(QHideEvent *) override; 0026 0027 private: 0028 QGridLayout *mGrid; 0029 }; 0030 0031 #endif