add more spacing
[personal-kdebase.git] / apps / kinfocenter / partition / usedSizeWidget.h
blob52a7dfd17644decf97dd158da05c9581085d3bbb
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 USED_SIZE_WIDGET_H
12 #define USED_SIZE_WIDGET_H
14 #include <QFrame>
16 class UsedSizeWidget : public QWidget {
17 Q_OBJECT
18 public:
19 UsedSizeWidget(QWidget* parent = NULL);
21 void setUsedSize(const QString& mountPoint, quint64 totalSize, quint64 usedSize, quint64 availableSize);
23 protected:
24 virtual void paintEvent(QPaintEvent* event);
26 private:
27 QString mountPoint;
28 quint64 totalSize;
29 quint64 usedSize;
30 quint64 availableSize;
35 #endif // USED_SIZE_WIDGET_H