QStringList FilePrinter::optionPageOrder( QPrinter &printer ) { if ( printer.pageOrder() == QPrinter::LastPageFirst ) { return QStringList(QStringLiteral("-o")) << QStringLiteral("outputorder=reverse"); } return QStringList(QStringLiteral("-o")) << QStringLiteral("outputorder=normal"); }
QPrinter::PageOrder QPrinterProto::pageOrder() const { QPrinter *item = qscriptvalue_cast<QPrinter*>(thisObject()); if (item) return item->pageOrder(); return QPrinter::FirstPageFirst; }
int Printer::pageOrder(lua_State * L) // const : PageOrder { QPrinter* lhs = ValueBinding<MyQPrinter>::check( L, 1 ); Util::push( L, lhs->pageOrder() ); return 1; }