int QPrinterProto::depth() const { QPrinter *item = qscriptvalue_cast<QPrinter*>(thisObject()); if (item) return item->depth(); return 0; }