Refactoring.
Code style.
This commit is contained in:
parent
be2aaf5cdf
commit
7f332548c2
|
@ -371,11 +371,9 @@ auto VPoster::CountRows(int height, PageOrientation orientation) const -> int
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return qCeil(imgLength / (pageLength - static_cast<int>(allowance)));
|
return qCeil(imgLength / (pageLength - static_cast<int>(allowance)));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
auto VPoster::CountColumns(int width, PageOrientation orientation) const -> int
|
auto VPoster::CountColumns(int width, PageOrientation orientation) const -> int
|
||||||
|
@ -396,11 +394,9 @@ auto VPoster::CountColumns(int width, PageOrientation orientation) const -> int
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return qCeil(imgLength / (pageLength - static_cast<int>(allowance)));
|
return qCeil(imgLength / (pageLength - static_cast<int>(allowance)));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
auto VPoster::Cut(int i, int j, const QSize &imageRect, PageOrientation orientation) const -> PosterData
|
auto VPoster::Cut(int i, int j, const QSize &imageRect, PageOrientation orientation) const -> PosterData
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
#include "tst_qmutokenparser.h"
|
#include "tst_qmutokenparser.h"
|
||||||
#include "../qmuparser/qmutokenparser.h"
|
|
||||||
#include "../qmuparser/qmudef.h"
|
#include "../qmuparser/qmudef.h"
|
||||||
|
#include "../qmuparser/qmutokenparser.h"
|
||||||
|
|
||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
|
|
||||||
|
@ -142,8 +142,8 @@ auto TST_QmuTokenParser::IsSingleFromUser(const QString &formula) -> bool
|
||||||
return false; // if don't know say no
|
return false; // if don't know say no
|
||||||
}
|
}
|
||||||
|
|
||||||
QMap<vsizetype, QString> tokens;
|
QMap<qmusizetype, QString> tokens;
|
||||||
QMap<vsizetype, QString> numbers;
|
QMap<qmusizetype, QString> numbers;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user