Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportPageSize.cpp
Show All 32 Lines | 30 | static const KReportPageSizeInfo pageSizeInfo[] = { | |||
---|---|---|---|---|---|
33 | { "A5", QT_TRANSLATE_NOOP3("KReportPageFormat", "A5", ""), QPageSize::A5}, | 33 | { "A5", QT_TRANSLATE_NOOP3("KReportPageFormat", "A5", ""), QPageSize::A5}, | ||
34 | { "Letter", QT_TRANSLATE_NOOP3("KReportPageFormat", "US Letter", | 34 | { "Letter", QT_TRANSLATE_NOOP3("KReportPageFormat", "US Letter", | ||
35 | "Usually don't translate literally, use \"US Letter\""), | 35 | "Usually don't translate literally, use \"US Letter\""), | ||
36 | QPageSize::Letter}, | 36 | QPageSize::Letter}, | ||
37 | { "Legal", QT_TRANSLATE_NOOP3("KReportPageFormat", "US Legal", | 37 | { "Legal", QT_TRANSLATE_NOOP3("KReportPageFormat", "US Legal", | ||
38 | "Usually don't translate literally, use \"US Legal\""), | 38 | "Usually don't translate literally, use \"US Legal\""), | ||
39 | QPageSize::Legal}, | 39 | QPageSize::Legal}, | ||
40 | { "Screen", QT_TRANSLATE_NOOP3("KReportPageFormat", "Screen", ""), QPageSize::A4}, | 40 | { "Screen", QT_TRANSLATE_NOOP3("KReportPageFormat", "Screen", ""), QPageSize::A4}, | ||
41 | { "Custom", QT_TRANSLATE_NOOP3("KReportPageFormat", "Custom", ""), QPageSize::Custom}, | ||||
41 | { "", {"", ""}, QPageSize::LastPageSize} | 42 | { "", {"", ""}, QPageSize::LastPageSize} | ||
43 | | ||||
42 | }; | 44 | }; | ||
43 | 45 | | |||
44 | QStringList KReportPageSize::pageFormatNames() | 46 | QStringList KReportPageSize::pageFormatNames() | ||
45 | { | 47 | { | ||
46 | QStringList lst; | 48 | QStringList lst; | ||
47 | for (int i = 0; pageSizeInfo[i].pageSize != QPageSize::LastPageSize ;i++) { | 49 | for (int i = 0; pageSizeInfo[i].pageSize != QPageSize::LastPageSize ;i++) { | ||
48 | lst << QCoreApplication::translate("KReportPageFormat", | 50 | lst << QCoreApplication::translate("KReportPageFormat", | ||
49 | pageSizeInfo[ i ].description.source, | 51 | pageSizeInfo[ i ].description.source, | ||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |