Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / kinfocenter / memory / totalMemoryChart.h
blobde52feb48155a788e19b5ada56dad78afa20c58f
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 TOTAL_MEMORY_CHART_H
12 #define TOTAL_MEMORY_CHART_H
14 #include <QFrame>
15 #include <QList>
17 #include "chartWidget.h"
19 class QWidget;
20 class QPaintEvent;
22 class TotalMemoryChart : public Chart {
23 public:
25 /**
26 * Initialize the list view item and task.
28 TotalMemoryChart(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 // TOTAL_MEMORY_CHART_H