Exemple #1
0
int Printer::setPaperSource(lua_State * L) // (  PaperSource source  )
{
	QPrinter* lhs = ValueBinding<MyQPrinter>::check( L, 1 );
	QPrinter::PaperSource f=(QPrinter::PaperSource)Util::toInt( L, 2 );
	lhs->setPaperSource( f );
	return 0;
}
Exemple #2
0
void QPrinterProto::setPaperSource(QPrinter::PaperSource source)
{
  QPrinter *item = qscriptvalue_cast<QPrinter*>(thisObject());
  if (item)
    item->setPaperSource(source);
}