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