public void print ( QWebView view ) { if ( m_print ) { QPrinter printer = new QPrinter ( ) ; QPrintDialog printDialog = new QPrintDialog ( printer , view ) ; if ( printDialog . exec ( ) == QDialog . DialogCode . Accepted . value ( ) ) { // print ... view . print ( printer ) ; } } else { m_logger . warn ( "Print disabled" ) ; } }
Print callback . Checks if the print feature is enabled . If so launch the system print job .