mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
setPreviewLayoutDirection() added to RepotEngine
This commit is contained in:
parent
d47b84235e
commit
01ee099a04
@ -62,7 +62,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
||||
|
||||
LIMEREPORT_VERSION_MAJOR = 1
|
||||
LIMEREPORT_VERSION_MINOR = 4
|
||||
LIMEREPORT_VERSION_RELEASE = 51
|
||||
LIMEREPORT_VERSION_RELEASE = 52
|
||||
|
||||
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
||||
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
||||
|
@ -102,6 +102,8 @@ public:
|
||||
bool resultIsEditable();
|
||||
bool isBusy();
|
||||
void setPassPharse(QString& passPharse);
|
||||
Qt::LayoutDirection previewLayoutDirection();
|
||||
void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection);
|
||||
signals:
|
||||
void renderStarted();
|
||||
void renderFinished();
|
||||
|
@ -379,6 +379,7 @@ void ReportEnginePrivate::previewReport(PreviewHints hints)
|
||||
w->setWindowTitle(m_previewWindowTitle);
|
||||
w->setSettings(settings());
|
||||
w->setPages(pages);
|
||||
w->setLayoutDirection(m_previewLayoutDirection);
|
||||
if (!dataManager()->errorsList().isEmpty()){
|
||||
w->setErrorMessages(dataManager()->errorsList());
|
||||
}
|
||||
@ -715,6 +716,16 @@ QString ReportEnginePrivate::renderToString()
|
||||
}else return QString();
|
||||
}
|
||||
|
||||
Qt::LayoutDirection ReportEnginePrivate::previewLayoutDirection()
|
||||
{
|
||||
return m_previewLayoutDirection;
|
||||
}
|
||||
|
||||
void ReportEnginePrivate::setPreviewLayoutDirection(const Qt::LayoutDirection& layoutDirection)
|
||||
{
|
||||
m_previewLayoutDirection = layoutDirection;
|
||||
}
|
||||
|
||||
void ReportEnginePrivate::setPassPhrase(const QString &passPhrase)
|
||||
{
|
||||
m_passPhrase = passPhrase;
|
||||
@ -921,6 +932,18 @@ void ReportEngine::setPassPharse(QString &passPharse)
|
||||
d->setPassPhrase(passPharse);
|
||||
}
|
||||
|
||||
Qt::LayoutDirection ReportEngine::previewLayoutDirection()
|
||||
{
|
||||
Q_D(ReportEngine);
|
||||
return d->previewLayoutDirection();
|
||||
}
|
||||
|
||||
void ReportEngine::setPreviewLayoutDirection(const Qt::LayoutDirection& layoutDirection)
|
||||
{
|
||||
Q_D(ReportEngine);
|
||||
return d->setPreviewLayoutDirection(layoutDirection);
|
||||
}
|
||||
|
||||
void ReportEngine::setShowProgressDialog(bool value)
|
||||
{
|
||||
Q_D(ReportEngine);
|
||||
|
@ -102,6 +102,8 @@ public:
|
||||
bool resultIsEditable();
|
||||
bool isBusy();
|
||||
void setPassPharse(QString& passPharse);
|
||||
Qt::LayoutDirection previewLayoutDirection();
|
||||
void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection);
|
||||
signals:
|
||||
void renderStarted();
|
||||
void renderFinished();
|
||||
|
@ -130,6 +130,8 @@ public:
|
||||
void setPassPhrase(const QString &passPhrase);
|
||||
void reorderPages(const QList<PageDesignIntf *> &reorderedPages);
|
||||
void clearSelection();
|
||||
Qt::LayoutDirection previewLayoutDirection();
|
||||
void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection);
|
||||
signals:
|
||||
void pagesLoadFinished();
|
||||
void datasourceCollectionLoadFinished(const QString& collectionName);
|
||||
@ -182,8 +184,8 @@ private:
|
||||
bool m_reportRendering;
|
||||
bool m_resultIsEditable;
|
||||
QString m_passPhrase;
|
||||
|
||||
QFileSystemWatcher *m_fileWatcher;
|
||||
Qt::LayoutDirection m_previewLayoutDirection;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user