Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: add LayoutDirection to Viewer  (Read 5339 times)

ghon

  • Newbie
  • *
  • Posts: 23
    • View Profile
add LayoutDirection to Viewer
« 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.

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: add LayoutDirection to Viewer
« Reply #1 on: October 28, 2017, 02:39:15 pm »
Hi
Which limereport version do you use ?

ghon

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: add LayoutDirection to Viewer
« Reply #2 on: October 29, 2017, 12:06:44 pm »
limereport_1.4.7

ghon

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: add LayoutDirection to Viewer
« Reply #3 on: October 31, 2017, 12:00:26 pm »
See the image

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: add LayoutDirection to Viewer
« Reply #4 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?

ghon

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: add LayoutDirection to Viewer
« Reply #5 on: October 31, 2017, 10:03:09 pm »
hi
Sometimes I need a difference between the ِApplication and the Limereport
like any widgets.
« Last Edit: October 31, 2017, 10:06:42 pm by ghon »

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: add LayoutDirection to Viewer
« Reply #6 on: October 31, 2017, 10:29:45 pm »
Ok, i will add it.

ghon

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: add LayoutDirection to Viewer
« Reply #7 on: November 01, 2017, 09:52:19 am »
Thank you very much!

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: add LayoutDirection to Viewer
« Reply #8 on: November 01, 2017, 10:21:14 pm »
Hi!
I have added  setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection) to ReportEngine;
Version 1.4.52

ghon

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: add LayoutDirection to Viewer
« Reply #9 on: November 12, 2017, 12:24:04 pm »
Thank you very much! :) :) :)