Changeset View
Changeset View
Standalone View
Standalone View
src/ExportManager.cpp
Show First 20 Lines • Show All 507 Lines • ▼ Show 20 Line(s) | 496 | { | |||
---|---|---|---|---|---|
508 | srcRect.moveCenter(devRect.center()); | 508 | srcRect.moveCenter(devRect.center()); | ||
509 | 509 | | |||
510 | painter.drawPixmap(srcRect.topLeft(), pixmap); | 510 | painter.drawPixmap(srcRect.topLeft(), pixmap); | ||
511 | painter.end(); | 511 | painter.end(); | ||
512 | 512 | | |||
513 | delete printer; | 513 | delete printer; | ||
514 | return; | 514 | return; | ||
515 | } | 515 | } | ||
516 | | ||||
517 | const QMap<QString, QString> ExportManager::filenamePlaceholders { | ||||
518 | {QStringLiteral("%Y"), i18nc("A placeholder in the user configurable filename will replaced by the specified value","Year (4 digit)")}, | ||||
519 | {QStringLiteral("%y"), i18nc("A placeholder in the user configurable filename will replaced by the specified value","Year (2 digit)")}, | ||||
520 | {QStringLiteral("%M"), i18nc("A placeholder in the user configurable filename will replaced by the specified value","Month")}, | ||||
521 | {QStringLiteral("%D"), i18nc("A placeholder in the user configurable filename will replaced by the specified value","Day")}, | ||||
522 | {QStringLiteral("%H"), i18nc("A placeholder in the user configurable filename will replaced by the specified value","Hour")}, | ||||
523 | {QStringLiteral("%m"), i18nc("A placeholder in the user configurable filename will replaced by the specified value","minute")}, | ||||
ngraham: Sorry, one last thing: "minute" needs to be capitalized so it matches all the others. | |||||
524 | {QStringLiteral("%S"), i18nc("A placeholder in the user configurable filename will replaced by the specified value","Second")}, | ||||
525 | {QStringLiteral("%T"), i18nc("A placeholder in the user configurable filename will replaced by the specified value","Window Title")}, | ||||
526 | {QStringLiteral("%d"), i18nc("A placeholder in the user configurable filename will replaced by the specified value","Sequential numbering")}, | ||||
527 | {QStringLiteral("%Nd"), i18nc("A placeholder in the user configurable filename will replaced by the specified value","Sequential numbering, padded out to N digits")}, | ||||
528 | }; |
Sorry, one last thing: "minute" needs to be capitalized so it matches all the others.