add more spacing
[personal-kdebase.git] / apps / kinfocenter / memory / swapMemoryChart.h
blob04975b1ed5b3a2b8559d825c24b7419cf0d43bd3
1 /***************************************************************************
2 * -------------------------------------------------------------------- *
3 * Copyright (C) 2008, Nicolas Ternisien <nicolas.ternisien@gmail.com> *
4 * -------------------------------------------------------------------- *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 ***************************************************************************/
11 #ifndef SWAP_MEMORY_CHART_H
12 #define SWAP_MEMORY_CHART_H
14 #include <QFrame>
15 #include <QList>
17 #include "chartWidget.h"
19 class QWidget;
20 class QPaintEvent;
22 class SwapMemoryChart : public Chart {
23 public:
25 /**
26 * Initialize the list view item and task.
28 SwapMemoryChart(QWidget* parent = NULL);
31 protected:
32 virtual void paintEvent(QPaintEvent* event);
34 private:
35 bool colorsInitialized;
37 QList<QColor> colors;
38 QList<QString> texts;
42 #endif // SWAP_MEMORY_CHART_H