diff --git a/common.pri b/common.pri index 814770c..7bb8861 100644 --- a/common.pri +++ b/common.pri @@ -70,7 +70,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}\\\" diff --git a/include/lrreportengine.h b/include/lrreportengine.h index b8b0d68..444d2f4 100644 --- a/include/lrreportengine.h +++ b/include/lrreportengine.h @@ -108,10 +108,10 @@ public: bool resultIsEditable(); bool isBusy(); void setPassPharse(QString& passPharse); - QList aviableLanguages(); bool setReportLanguage(QLocale::Language language); - + Qt::LayoutDirection previewLayoutDirection(); + void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection); signals: void renderStarted(); void renderFinished(); diff --git a/limereport/lrreportengine.cpp b/limereport/lrreportengine.cpp index 675b2dc..fafa4c4 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -463,6 +463,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()); } @@ -810,6 +811,16 @@ PageDesignIntf* ReportEnginePrivate::getPageByName(const QString& pageName) return 0; } +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; diff --git a/limereport/lrreportengine.h b/limereport/lrreportengine.h index b8b0d68..444d2f4 100644 --- a/limereport/lrreportengine.h +++ b/limereport/lrreportengine.h @@ -108,10 +108,10 @@ public: bool resultIsEditable(); bool isBusy(); void setPassPharse(QString& passPharse); - QList aviableLanguages(); bool setReportLanguage(QLocale::Language language); - + Qt::LayoutDirection previewLayoutDirection(); + void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection); signals: void renderStarted(); void renderFinished(); diff --git a/limereport/lrreportengine_p.h b/limereport/lrreportengine_p.h index b0fff32..49505ca 100644 --- a/limereport/lrreportengine_p.h +++ b/limereport/lrreportengine_p.h @@ -140,6 +140,8 @@ public: ReportTranslation* reportTranslation(QLocale::Language language); void reorderPages(const QList &reorderedPages); void clearSelection(); + Qt::LayoutDirection previewLayoutDirection(); + void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection); signals: void pagesLoadFinished(); void datasourceCollectionLoadFinished(const QString& collectionName); @@ -202,6 +204,7 @@ private: Translations m_translations; QLocale::Language m_reportLanguage; void activateLanguage(QLocale::Language language); + Qt::LayoutDirection m_previewLayoutDirection; }; }