{
QPrintPreviewDialog previewdlg( &printer, widget() );
setupPrint( printer );
- doPrint( printer );
+ connect( &previewdlg, SIGNAL(paintRequested(QPrinter*)), this, SLOT(slotPrintRequested(QPrinter*)) );
previewdlg.exec();
}
else
}
}
+void Part::slotPrintRequested(QPrinter *printer)
+{
+ doPrint(*printer);
+}
void Part::doPrint(QPrinter &printer)
{
void setupActions();
void setupPrint( QPrinter &printer );
- void doPrint( QPrinter &printer );
+ void doPrint(QPrinter &printer);
bool handleCompressed( QString &destpath, const QString &path, const QString &compressedMimetype );
void rebuildBookmarkMenu( bool unplugActions = true );
void updateAboutBackendAction();
QTimer *m_infoTimer;
private slots:
+ void slotPrintRequested( QPrinter *printer );
void slotAnnotationPreferences();
void slotHandleActivatedSourceReference(const QString& absFileName, int line, int col, bool *handled);
};