bool QPrinterProto::isValid() const { QPrinter *item = qscriptvalue_cast<QPrinter*>(thisObject()); if (item) return item->isValid(); return false; }