LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: ghon on October 28, 2017, 01:11:09 PM

Title: add LayoutDirection to Viewer
Post by: ghon on October 28, 2017, 01:11:09 PM
Hi
PLS. add setLayoutDirection(Qt::RightToLeft | Qt::LeftToRight) to Limereport Viewer

as
Code: [Select]
   LimeReport::ReportEngine *Lrep = new LimeReport::ReportEngine(this);
   Lrep->setLayoutDirection(Qt::RightToLeft);
thanks.
Title: Re: add LayoutDirection to Viewer
Post by: Arin Alex on October 28, 2017, 02:39:15 PM
Hi
Which limereport version do you use ?
Title: Re: add LayoutDirection to Viewer
Post by: ghon on October 29, 2017, 12:06:44 PM
limereport_1.4.7
Title: Re: add LayoutDirection to Viewer
Post by: ghon on October 31, 2017, 12:00:26 PM
See the image
Title: Re: add LayoutDirection to Viewer
Post by: Arin Alex on October 31, 2017, 12:55:43 PM
Hi
Is your main application layout direction right to left?
LimeReport uses main application layout direction. Do you have any problem with this?
Title: Re: add LayoutDirection to Viewer
Post by: ghon on October 31, 2017, 10:03:09 PM
hi
Sometimes I need a difference between the ِApplication and the Limereport
like any widgets.
Title: Re: add LayoutDirection to Viewer
Post by: Arin Alex on October 31, 2017, 10:29:45 PM
Ok, i will add it.
Title: Re: add LayoutDirection to Viewer
Post by: ghon on November 01, 2017, 09:52:19 AM
Thank you very much!
Title: Re: add LayoutDirection to Viewer
Post by: Arin Alex on November 01, 2017, 10:21:14 PM
Hi!
I have added  setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection) to ReportEngine;
Version 1.4.52 (https://github.com/fralx/LimeReport/releases/tag/1.4.52)
Title: Re: add LayoutDirection to Viewer
Post by: ghon on November 12, 2017, 12:24:04 PM
Thank you very much! :) :) :)