File indexing completed on 2024-05-12 03:48:29

0001 /*
0002     File                 : MemoryWidget.h
0003     Project              : LabPlot
0004     Description          : widget showing the amount of memory consumed by the process
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2018 Alexander Semke <alexander.semke@web.de>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #ifndef MEMORYWIDGET_H
0012 #define MEMORYWIDGET_H
0013 
0014 #include <QLabel>
0015 #include <QTimer>
0016 
0017 class MemoryWidget : public QLabel {
0018     Q_OBJECT
0019 
0020 public:
0021     explicit MemoryWidget(QWidget*);
0022 
0023 public Q_SLOTS:
0024     void refreshMemoryInfo();
0025 
0026 private:
0027     QTimer m_timer;
0028 };
0029 
0030 #endif