Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportPageSize.cpp
Show All 28 Lines | |||||
29 | 29 | | |||
30 | const KReportPageSizeInfo pageSizeInfo[] = { | 30 | const KReportPageSizeInfo pageSizeInfo[] = { | ||
31 | { "A3", QT_TRANSLATE_NOOP("KReportPageFormat", "A3"), QPageSize::A3}, | 31 | { "A3", QT_TRANSLATE_NOOP("KReportPageFormat", "A3"), QPageSize::A3}, | ||
32 | { "A4", QT_TRANSLATE_NOOP("KReportPageFormat", "A4"), QPageSize::A4}, | 32 | { "A4", QT_TRANSLATE_NOOP("KReportPageFormat", "A4"), QPageSize::A4}, | ||
33 | { "A5", QT_TRANSLATE_NOOP("KReportPageFormat", "A5"), QPageSize::A5}, | 33 | { "A5", QT_TRANSLATE_NOOP("KReportPageFormat", "A5"), QPageSize::A5}, | ||
34 | { "Letter", QT_TRANSLATE_NOOP("KReportPageFormat", "US Letter"), QPageSize::Letter}, | 34 | { "Letter", QT_TRANSLATE_NOOP("KReportPageFormat", "US Letter"), QPageSize::Letter}, | ||
35 | { "Legal", QT_TRANSLATE_NOOP("KReportPageFormat", "US Legal"), QPageSize::Legal}, | 35 | { "Legal", QT_TRANSLATE_NOOP("KReportPageFormat", "US Legal"), QPageSize::Legal}, | ||
36 | { "Screen", QT_TRANSLATE_NOOP("KReportPageFormat", "Screen"), QPageSize::A4}, | 36 | { "Screen", QT_TRANSLATE_NOOP("KReportPageFormat", "Screen"), QPageSize::A4}, | ||
37 | { "Custom", QT_TRANSLATE_NOOP("KReportPageFormat", "Custom"), QPageSize::Custom}, | ||||
37 | { "", "", QPageSize::LastPageSize} | 38 | { "", "", QPageSize::LastPageSize} | ||
38 | }; | 39 | }; | ||
39 | 40 | | |||
40 | QStringList KReportPageSize::pageFormatNames() | 41 | QStringList KReportPageSize::pageFormatNames() | ||
41 | { | 42 | { | ||
42 | QStringList lst; | 43 | QStringList lst; | ||
43 | for (int i = 0; pageSizeInfo[i].pageSize != QPageSize::LastPageSize ;i++) { | 44 | for (int i = 0; pageSizeInfo[i].pageSize != QPageSize::LastPageSize ;i++) { | ||
44 | lst << QCoreApplication::translate("KReportPageFormat", pageSizeInfo[ i ].description); | 45 | lst << QCoreApplication::translate("KReportPageFormat", pageSizeInfo[ i ].description); | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |