Improving for embedded man page.
Use bullet list where possible. --HG-- branch : feature
This commit is contained in:
parent
ffe4affcbf
commit
5d2e584d2f
|
@ -825,11 +825,20 @@ QString DialogLayoutSettings::MakeHelpTemplateList()
|
||||||
QString out = "\n";
|
QString out = "\n";
|
||||||
|
|
||||||
auto cntr = static_cast<VIndexType>(PaperSizeTemplate::A0);
|
auto cntr = static_cast<VIndexType>(PaperSizeTemplate::A0);
|
||||||
foreach(const auto& v, pageFormatNames)
|
for (int i = 0; i < pageFormatNames.size(); ++i)
|
||||||
{
|
{
|
||||||
if (cntr <= static_cast<int>(PaperSizeTemplate::Roll44in))// Don't include custom template
|
if (cntr <= static_cast<int>(PaperSizeTemplate::Roll44in))// Don't include custom template
|
||||||
{
|
{
|
||||||
out += "\t"+v+" = "+ QString::number(cntr++)+"\n";
|
out += "\t* "+pageFormatNames.at(i)+" = "+ QString::number(cntr++);
|
||||||
|
|
||||||
|
if (i < pageFormatNames.size() - 1)
|
||||||
|
{
|
||||||
|
out += ",\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
out += ".\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
|
|
|
@ -250,10 +250,20 @@ bool DialogSaveLayout::IsBinaryDXFFormat() const
|
||||||
QString DialogSaveLayout::MakeHelpFormatList()
|
QString DialogSaveLayout::MakeHelpFormatList()
|
||||||
{
|
{
|
||||||
QString out("\n");
|
QString out("\n");
|
||||||
foreach(auto& v, InitFormats())
|
const auto formats = InitFormats();
|
||||||
|
for(int i = 0; i < formats.size(); ++i)
|
||||||
{
|
{
|
||||||
out += QLatin1String("\t") + v.first + QLatin1String(" = ") + QString::number(static_cast<int>(v.second))
|
out += QLatin1String("\t* ") + formats.at(i).first + QLatin1String(" = ")
|
||||||
+ QLatin1String("\n");
|
+ QString::number(static_cast<int>(formats.at(i).second));
|
||||||
|
|
||||||
|
if (i < formats.size() - 1)
|
||||||
|
{
|
||||||
|
out += QLatin1String(",\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
out += QLatin1String(".\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user