Quark  0.1
Formatters.h++
Go to the documentation of this file.
1 #ifndef __libquark_gui_Formatters_hxx
2 #define __libquark_gui_Formatters_hxx
3 
4 #include <quark/Quark.h++>
5 
6 #include <QSize>
7 #include <QString>
8 
9 namespace quark {
10 namespace gui {
11 
18 {
19  public:
20 
28  static QString formatFileSize(qint64 fileSize, int decimals = 1);
29 
37  static QString formatSize(const QSize &size);
38 
47  static QString formatTimeInterval(qint64 millisec,
48  bool includeMillisec = false);
49 
50  private:
51 
52  Formatters();
53 
54  Q_DISABLE_COPY(Formatters);
55 };
56 
57 } // namespace gui
58 } // namespace quark
59 
60 #endif // __libquark_gui_Formatters_hxx
A collection of functions for formatting values for display.
Definition: Formatters.h++:17
Definition: BarChartView.h++:6
#define LIBQUARK_API
Definition: Quark.h++:18