Formatting

This commit is contained in:
Jonas Kvinge
2021-06-12 20:53:23 +02:00
parent 427b9c1ebc
commit f786a17014
117 changed files with 444 additions and 434 deletions

View File

@@ -56,13 +56,13 @@ class FreeSpaceBar : public QWidget {
static const QRgb kColorBar2;
static const QRgb kColorBorder;
void set_free_bytes(qint64 bytes) { free_ = bytes; update(); }
void set_additional_bytes(qint64 bytes) { additional_ = bytes; update(); }
void set_total_bytes(qint64 bytes) { total_ = bytes; update(); }
void set_free_bytes(const qint64 bytes) { free_ = bytes; update(); }
void set_additional_bytes(const qint64 bytes) { additional_ = bytes; update(); }
void set_total_bytes(const qint64 bytes) { total_ = bytes; update(); }
void set_free_text(const QString& text) { free_text_ = text; update(); }
void set_additional_text(const QString& text) { additional_text_ = text; update(); }
void set_used_text(const QString& text) { used_text_ = text; update(); }
void set_free_text(const QString &text) { free_text_ = text; update(); }
void set_additional_text(const QString &text) { additional_text_ = text; update(); }
void set_used_text(const QString &text) { used_text_ = text; update(); }
QSize sizeHint() const override;
@@ -77,7 +77,7 @@ class FreeSpaceBar : public QWidget {
QColor color;
};
QString TextForSize(const QString &prefix, qint64 size) const;
QString TextForSize(const QString &prefix, const qint64 size) const;
void DrawBar(QPainter *p, const QRect &r);
void DrawText(QPainter *p, const QRect &r);