ui: Fixed font colors in indexing dialogs and line breaks in status bar

This commit is contained in:
Eberhard Graether
2016-08-26 15:31:57 +02:00
parent 00980f73af
commit d3b10bc5fd
2 changed files with 10 additions and 6 deletions
@@ -1,4 +1,4 @@
* { QLabel {
color: white; color: white;
} }
@@ -29,9 +29,10 @@
} }
#errorCount { #errorCount {
font-size: 12pt;
border: none; border: none;
background: transparent; background: transparent;
color: white;
font-size: 14pt;
} }
#windowButton { #windowButton {
@@ -3,6 +3,7 @@
#include "component/view/StatusBarView.h" #include "component/view/StatusBarView.h"
#include "data/access/StorageAccess.h" #include "data/access/StorageAccess.h"
#include "utility/logging/logging.h" #include "utility/logging/logging.h"
#include "utility/utilityString.h"
StatusBarController::StatusBarController(StorageAccess* storageAccess) StatusBarController::StatusBarController(StorageAccess* storageAccess)
: m_storageAccess(storageAccess) : m_storageAccess(storageAccess)
@@ -51,10 +52,12 @@ void StatusBarController::handleMessage(MessageStatus* message)
void StatusBarController::setStatus(const std::string& status, bool isError, bool showLoader) void StatusBarController::setStatus(const std::string& status, bool isError, bool showLoader)
{ {
if (!status.empty()) std::string str = utility::replace(status, "\n", " ");
{
LOG_INFO_STREAM(<< "STATUS " << status);
getView()->showMessage(status, isError, showLoader); if (!str.empty())
{
LOG_INFO_STREAM(<< "STATUS " << str);
getView()->showMessage(str, isError, showLoader);
} }
} }