diff --git a/logdoctor/modules/craplog/craplog.cpp b/logdoctor/modules/craplog/craplog.cpp index c3701307..d619f106 100644 --- a/logdoctor/modules/craplog/craplog.cpp +++ b/logdoctor/modules/craplog/craplog.cpp @@ -970,13 +970,13 @@ void Craplog::makeChart( const QChart::ChartTheme& theme, const std::unordered_m const size_t parsed_size{ this->parsed_size - this->warnlisted_size }; parsedSize_donut->append( "P@" + parsed_slice_name + "@" + PrintSec::printableSize( parsed_size ), - parsed_size ); + static_cast( parsed_size ) ); parsedSize_donut->append( "W@" + warning_slice_name + "@" + PrintSec::printableSize( this->warnlisted_size ), - this->warnlisted_size ); + static_cast( this->warnlisted_size ) ); parsedSize_donut->append( "B@" + blacklisted_slice_name + "@" + PrintSec::printableSize( this->blacklisted_size ), - this->blacklisted_size ); + static_cast( this->blacklisted_size ) ); // logs size donut chart QPieSeries* ignoredSize_donut{ new QPieSeries() }; @@ -985,7 +985,7 @@ void Craplog::makeChart( const QChart::ChartTheme& theme, const std::unordered_m ignoredSize_donut->setName( printable_ignored_size ); ignoredSize_donut->append( "I@#" + ignored_slice_name + "@#" + printable_ignored_size, - ignored_size ); + static_cast( ignored_size ) ); ignoredSize_donut->setLabelsVisible( false ); DonutBreakdown* sizeBreakdown{ new DonutBreakdown() }; diff --git a/logdoctor/modules/dialogs.cpp b/logdoctor/modules/dialogs.cpp index 9d7f2eda..513848bd 100644 --- a/logdoctor/modules/dialogs.cpp +++ b/logdoctor/modules/dialogs.cpp @@ -470,7 +470,7 @@ void DialogSec::msgNotEnoughMemory( const QString& msg, QWidget* parent ) QString("%1%2\n\n%3").arg( DialogSec::tr("The total size of the selected files exceeds the available memory"), msg, - DialogSec::tr("Please free some resources, parse the files at different times or split them into smaller units") ), + DialogSec::tr("Please free some resources, parse the files in different steps or split them into smaller units") ), "", 2, parent }; std::ignore = dialog.exec(); } diff --git a/logdoctor/utilities/printables.h b/logdoctor/utilities/printables.h index fe10b9f8..b032a89f 100644 --- a/logdoctor/utilities/printables.h +++ b/logdoctor/utilities/printables.h @@ -4,6 +4,10 @@ class QString; +//! PrintSec +/*! + Utilities to have printable stuff +*/ namespace PrintSec {