From d7c67fa2b6faa3e81269244224da4b72f045d659 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 31 May 2015 14:23:11 +0300 Subject: Convert ProgressColorId enum into strong typed enum. --- src/gui/windows/ministatuswindow.cpp | 5 +++-- src/gui/windows/ministatuswindow.h | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp index 96901249e..7d0e030b3 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -173,9 +173,10 @@ MiniStatusWindow::~MiniStatusWindow() } ProgressBar *MiniStatusWindow::createBar(const float progress, - const int width, const int height, + const int width, + const int height, const int textColor, - const int backColor, + const ProgressColorIdT backColor, const std::string &restrict skin, const std::string &restrict skinFill, const std::string &restrict name, diff --git a/src/gui/windows/ministatuswindow.h b/src/gui/windows/ministatuswindow.h index bd1e6a393..2edb8e66e 100644 --- a/src/gui/windows/ministatuswindow.h +++ b/src/gui/windows/ministatuswindow.h @@ -110,8 +110,10 @@ class MiniStatusWindow final : public Window, bool isInBar(ProgressBar *bar, int x, int y) const; ProgressBar *createBar(const float progress, - const int width, const int height, - const int textColor, const int backColor, + const int width, + const int height, + const int textColor, + const ProgressColorIdT backColor, const std::string &restrict skin, const std::string &restrict skinFill, const std::string &restrict name, -- cgit v1.2.3-70-g09d2