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

Author Topic: add LayoutDirection to Viewer  (Read 2668 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: 992
    • 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: 992
    • 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: 992
    • 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: 992
    • 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! :) :) :)