Mercurial > hg > syntilista
changeset 120:2ff2ad720474
Improve page numbers in printing.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 06 Jul 2017 08:39:48 +0300 |
parents | eb74c4dff497 |
children | 404d567edaab |
files | src/main.cpp |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.cpp Wed Jul 05 15:49:26 2017 +0300 +++ b/src/main.cpp Thu Jul 06 08:39:48 2017 +0300 @@ -727,8 +727,11 @@ { ctx.setPos(0, 1240); ctx.drawText(0, 1000, - tr("Sivu %1 / %2"). - arg(npage).arg(printer->toPage()), + tr("Sivu %1 / %2 (%3 / %4)"). + arg(npage - printer->fromPage() + 1). + arg(printer->toPage() - printer->fromPage() + 1). + arg(npage). + arg(printer->toPage()), Qt::AlignHCenter); }