ui: added loader animation gif to StatusBar

The loader animation can be activated by setting the showLoader flag on MessageStatus.
This commit is contained in:
Eberhard Graether
2015-04-28 20:26:31 +02:00
parent 791189c3c3
commit 749b1647e4
10 changed files with 49 additions and 20 deletions
@@ -7,9 +7,10 @@ class MessageStatus
: public Message<MessageStatus>
{
public:
MessageStatus(const std::string& status, bool isError = false)
MessageStatus(const std::string& status, bool isError = false, bool showLoader = false)
: status(status)
, isError(isError)
, showLoader(showLoader)
{
setSendAsTask(false);
}
@@ -21,6 +22,7 @@ public:
const std::string status;
const bool isError;
const bool showLoader;
};
#endif // MESSAGE_STATUS_H