[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Windec and RTL script
From:       Remi Villatel <maxilys () tele2 ! fr>
Date:       2006-01-03 23:48:03
Message-ID: 43BB0D33.8070103 () tele2 ! fr
[Download RAW message or body]

Hi there,

A user reported to me a strange bug in my windec Powder with RTL script 
--Hebrew in that case. I don't understand why since it works perfectly 
with any LTR scripts but the window width is set to zero with Hebrew. It 
happens only after a restart though. If the user switch from English to 
Hebrew without restarting KDE, the windec works normally.

I've been trying for some time to solve this problem but to no avail. I 
guessed there was some layout problem but all my attemps led me nowhere.

The layout I use in Powder is a QVBoxLayout() which is built this way:

mainLayout->addItem(m_topSpacer);
mainLayout->addLayout(titleLayout);
mainLayout->addItem(m_decoSpacer);
mainLayout->addLayout(midLayout);
mainLayout->addItem(m_bottomSpacer);

I modelled my layout on CDE which the user told me works fine with 
Hebrew. It also uses a QVBoxLayout and I create the layouts I insert in 
mainLayout the same way it does, e.g.:

titleLayout = new QBoxLayout(0, QBoxLayout::LeftToRight, 0, 0, 0);

After that I got lost. I don't understand the relation in between the 
direction of the text and the layout. If the layout is somehow bugged it 
should misbehave in both directions, shouldn't it?

By the way, is there an "official" way to build a layout? From top to 
bottom or from bottom to top. In Powder I begin with the children that I 
  put in their parents up to the main layout. Maybe doing it the other 
way around --from parent to children-- would solve my RTL problem? I 
don't know.

Please, shed some light in my dark cave...  ;-)

-- 
==================
Remi Villatel
maxilys_@_tele2.fr
==================
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic