Code and docs improvements
This commit is contained in:
parent
b9ca2fe736
commit
abb697d643
|
@ -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 };
|
const size_t parsed_size{ this->parsed_size - this->warnlisted_size };
|
||||||
parsedSize_donut->append(
|
parsedSize_donut->append(
|
||||||
"P@" + parsed_slice_name + "@" + PrintSec::printableSize( parsed_size ),
|
"P@" + parsed_slice_name + "@" + PrintSec::printableSize( parsed_size ),
|
||||||
parsed_size );
|
static_cast<qreal>( parsed_size ) );
|
||||||
parsedSize_donut->append(
|
parsedSize_donut->append(
|
||||||
"W@" + warning_slice_name + "@" + PrintSec::printableSize( this->warnlisted_size ),
|
"W@" + warning_slice_name + "@" + PrintSec::printableSize( this->warnlisted_size ),
|
||||||
this->warnlisted_size );
|
static_cast<qreal>( this->warnlisted_size ) );
|
||||||
parsedSize_donut->append(
|
parsedSize_donut->append(
|
||||||
"B@" + blacklisted_slice_name + "@" + PrintSec::printableSize( this->blacklisted_size ),
|
"B@" + blacklisted_slice_name + "@" + PrintSec::printableSize( this->blacklisted_size ),
|
||||||
this->blacklisted_size );
|
static_cast<qreal>( this->blacklisted_size ) );
|
||||||
|
|
||||||
// logs size donut chart
|
// logs size donut chart
|
||||||
QPieSeries* ignoredSize_donut{ new QPieSeries() };
|
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->setName( printable_ignored_size );
|
||||||
ignoredSize_donut->append(
|
ignoredSize_donut->append(
|
||||||
"I@#" + ignored_slice_name + "@#" + printable_ignored_size,
|
"I@#" + ignored_slice_name + "@#" + printable_ignored_size,
|
||||||
ignored_size );
|
static_cast<qreal>( ignored_size ) );
|
||||||
ignoredSize_donut->setLabelsVisible( false );
|
ignoredSize_donut->setLabelsVisible( false );
|
||||||
|
|
||||||
DonutBreakdown* sizeBreakdown{ new DonutBreakdown() };
|
DonutBreakdown* sizeBreakdown{ new DonutBreakdown() };
|
||||||
|
|
|
@ -470,7 +470,7 @@ void DialogSec::msgNotEnoughMemory( const QString& msg, QWidget* parent )
|
||||||
QString("%1%2\n\n%3").arg(
|
QString("%1%2\n\n%3").arg(
|
||||||
DialogSec::tr("The total size of the selected files exceeds the available memory"),
|
DialogSec::tr("The total size of the selected files exceeds the available memory"),
|
||||||
msg,
|
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 };
|
"", 2, parent };
|
||||||
std::ignore = dialog.exec();
|
std::ignore = dialog.exec();
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
class QString;
|
class QString;
|
||||||
|
|
||||||
|
|
||||||
|
//! PrintSec
|
||||||
|
/*!
|
||||||
|
Utilities to have printable stuff
|
||||||
|
*/
|
||||||
namespace PrintSec
|
namespace PrintSec
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue