File indexing completed on 2024-12-22 04:17:38

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2007 The University of Toronto                        *
0004  *                   netterfield@astro.utoronto.ca                         *
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef MEMORYWIDGET_H
0014 #define MEMORYWIDGET_H
0015 
0016 #include <QTimer>
0017 #include <QLabel>
0018 
0019 namespace Kst {
0020 
0021 class MemoryWidget : public QLabel {
0022   Q_OBJECT
0023   public:
0024     explicit MemoryWidget(QWidget *parent, int updateMilliSeconds = 5000);
0025     ~MemoryWidget();
0026 
0027   public Q_SLOTS:
0028     void updateFreeMemory();
0029 
0030   private:
0031     QTimer _timer;
0032 };
0033 
0034 }
0035 
0036 #endif
0037 
0038 // vim: ts=2 sw=2 et