3 #include "../core/vapplication.h"
10 << QLatin1String(
"A2")
11 << QLatin1String(
"A3")
12 << QLatin1String(
"A4")
32 SCASSERT(comboBoxTemplates !=
nullptr)
33 const QIcon icoPaper(
"://icon/16x16/template.png");
34 const QIcon icoRoll(
"://icon/16x16/roll.png");
35 const QString pdi = QString(
"(%1ppi)").arg(
PrintDPI);
42 comboBoxTemplates->addItem(icoPaper, v+
" "+pdi, QVariant(cntr++));
46 comboBoxTemplates->addItem(icoRoll, v+
" "+pdi, QVariant(cntr++));
50 comboBoxTemplates->addItem(v+
" "+pdi, QVariant(cntr++));
53 comboBoxTemplates->setCurrentIndex(-1);
136 w = qRound(width * 100.0) / 100.0;
137 h = qRound(height * 100.0) / 100.0;
140 w = qRound(width * 100000.0) / 100000.0;
141 h = qRound(height * 100000.0) / 100000.0;
147 return QSizeF(width, height);
QStringList FormatsVector
void initTemplates(QComboBox *comboBoxTemplates)
QSizeF RoundTemplateSize(qreal width, qreal height, Unit unit) const
QSizeF getTemplateSize(const PaperSizeTemplate &tmpl, const Unit &unit) const
DialogLayoutSettings::TemplateSize.
static const FormatsVector pageFormatNames
VAbstractLayoutDialog(QWidget *parent=nullptr)
qreal UnitConvertor(qreal value, const Unit &from, const Unit &to)
#define translate(context, source)