mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-24 16:18:04 +03:00
27/03
This commit is contained in:
@@ -407,7 +407,7 @@ bool ReportEnginePrivate::printReport(QPrinter* printer)
|
||||
if (printer&&printer->isValid()){
|
||||
try{
|
||||
bool designTime = dataManager()->designTime();
|
||||
dataManager()->setDesignTime(false);
|
||||
dataManager()->setDesignTime(false);
|
||||
ReportPages pages = renderToPages();
|
||||
dataManager()->setDesignTime(designTime);
|
||||
if (pages.count()>0){
|
||||
@@ -536,7 +536,7 @@ bool ReportEnginePrivate::showPreviewWindow(ReportPages pages, PreviewHints hint
|
||||
}
|
||||
|
||||
void ReportEnginePrivate::previewReport(PreviewHints hints)
|
||||
{
|
||||
{
|
||||
previewReport(0, hints);
|
||||
}
|
||||
|
||||
@@ -661,21 +661,21 @@ bool ReportEnginePrivate::slotLoadFromFile(const QString &fileName)
|
||||
{
|
||||
EASY_BLOCK("ReportEnginePrivate::slotLoadFromFile")
|
||||
PreviewReportWindow *currentPreview = qobject_cast<PreviewReportWindow *>(m_activePreview);
|
||||
|
||||
|
||||
if (!QFile::exists(fileName))
|
||||
{
|
||||
if ( hasActivePreview() )
|
||||
{
|
||||
{
|
||||
QMessageBox::information( NULL,
|
||||
tr( "Report File Change" ),
|
||||
tr( "The report file \"%1\" has changed names or been deleted.\n\nThis preview is no longer valid." ).arg( fileName )
|
||||
);
|
||||
|
||||
|
||||
clearReport();
|
||||
|
||||
|
||||
currentPreview->close();
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -742,8 +742,8 @@ void ReportEnginePrivate::designReport(bool showModal)
|
||||
if (designerWindow){
|
||||
dataManager()->setDesignTime(true);
|
||||
connect(designerWindow, SIGNAL(destroyed(QObject*)), this, SLOT(slotDesignerWindowDestroyed(QObject*)));
|
||||
#ifdef Q_OS_WIN
|
||||
designerWindow->setWindowModality(Qt::ApplicationModal);
|
||||
#ifdef Q_OS_WIN
|
||||
designerWindow->setWindowModality(Qt::NonModal);
|
||||
#endif
|
||||
if (!showModal){
|
||||
designerWindow->show();;
|
||||
@@ -856,7 +856,7 @@ bool ReportEnginePrivate::saveToFile(const QString &fileName)
|
||||
QScopedPointer< ItemsWriterIntf > writer(new XMLWriter());
|
||||
writer->setPassPhrase(m_passPhrase);
|
||||
writer->putItem(this);
|
||||
m_fileName=fn;
|
||||
m_fileName=fn;
|
||||
bool saved = writer->saveToFile(fn);
|
||||
|
||||
foreach (ConnectionDesc* connection, dataManager()->conections()) {
|
||||
@@ -1419,7 +1419,7 @@ ReportEngine::ReportEngine(QObject *parent)
|
||||
connect(d, SIGNAL(loadFinished()), this, SIGNAL(loadFinished()));
|
||||
connect(d, SIGNAL(cleared()), this, SIGNAL(cleared()));
|
||||
connect(d, SIGNAL(printedToPDF(QString)), this, SIGNAL(printedToPDF(QString)));
|
||||
|
||||
|
||||
connect(d, SIGNAL(getAvailableDesignerLanguages(QList<QLocale::Language>*)),
|
||||
this, SIGNAL(getAvailableDesignerLanguages(QList<QLocale::Language>*)));
|
||||
connect(d, SIGNAL(currentDefaultDesignerLanguageChanged(QLocale::Language)),
|
||||
|
||||
Reference in New Issue
Block a user