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