Fixed alignments

--HG--
branch : feature
This commit is contained in:
BojanKverh 2016-07-21 16:49:26 +02:00
parent d6341b50e4
commit 5ba40aad8c
5 changed files with 9 additions and 9 deletions

View file

@ -489,7 +489,7 @@ void MainWindowsNoGUI::PrepareDetailsForLayout(const QHash<quint32, VDetail> *de
date = QDate::currentDate();
}
det.SetPatternInfo(pDoc->GetPatternName(), pDoc->GetPatternNumber(), pDoc->GetPatternSize(),
pDoc->GetCompanyName(), pDoc->GetCustomerName(), date, geom, qApp->font());
pDoc->GetCompanyName(), pDoc->GetCustomerName(), date, geom, qApp->font());
qApp->getCurrentDocument();
}
det.setWidth(qApp->toPixel(d.getWidth()));

View file

@ -134,7 +134,7 @@ void VPattern::Parse(const Document &parse)
QStringList tags = QStringList() << TagDraw << TagIncrements << TagAuthor << TagDescription << TagNotes
<< TagMeasurements << TagVersion << TagGradation << TagImage << TagUnit
<< TagPatternName << TagPatternNum << TagCompanyName << TagCustomerName
<< TagSize << TagShowDate;
<< TagSize << TagShowDate;
PrepareForParse(parse);
QDomNode domNode = documentElement().firstChild();
while (domNode.isNull() == false)
@ -206,10 +206,10 @@ void VPattern::Parse(const Document &parse)
case 13: // TagCustomerName
qCDebug(vXML, "Customer name.");
break;
case 14: // TagSize
case 14: // TagSize
qCDebug(vXML, "Size");
break;
case 15:
case 15:
qCDebug(vXML, "Show creation date");
break;
default:

View file

@ -1199,7 +1199,7 @@ QDomElement VAbstractPattern::CheckTagExists(const QString &tag)
{
const QStringList tags = QStringList() << TagUnit << TagImage << TagAuthor << TagDescription << TagNotes
<< TagGradation << TagPatternName << TagPatternNum << TagCompanyName
<< TagCustomerName << TagSize << TagShowDate;
<< TagCustomerName << TagSize << TagShowDate;
switch (tags.indexOf(tag))
{
case 0: //TagUnit
@ -1260,12 +1260,12 @@ QDomElement VAbstractPattern::CheckTagExists(const QString &tag)
element = createElement(TagCustomerName);
break;
}
case 10: // TagSize
case 10: // TagSize
{
element = createElement(TagSize);
break;
}
case 11: // TagShowDate
case 11: // TagShowDate
{
element = createElement(TagShowDate);
break;

View file

@ -176,7 +176,7 @@ public:
static const QString TagPatternNum;
static const QString TagCompanyName;
static const QString TagCustomerName;
static const QString TagSize;
static const QString TagSize;
static const QString TagShowDate;
static const QString AttrName;

View file

@ -833,7 +833,7 @@ void VToolDetail::UpdatePatternInfo()
tl.m_eFontWeight = QFont::Normal;
tl.m_eStyle = QFont::StyleNormal;
tl.m_iFontSize = 0;
QStringList qslDate = QDate::currentDate().toString(Qt::SystemLocaleLongDate).split(", ");
QStringList qslDate = QDate::currentDate().toString(Qt::SystemLocaleLongDate).split(", ");
tl.m_qsText = qslDate.last();
patternInfo->AddLine(tl);
}