The image of the pointing arrow needs to always be reversed in QFileDialog::getExistingDirectory(), ::getOpenFileName(s)() and ::getSaveFileName() when the layout direction is reversed. I believe Qt should implement this on the API and attach it to the reverse situation.
Now the left and right arrows on applications/dialogs/widgets should be swapped when dealing with a right-to-left language. We need to always do it as follows as mentioned by blanchette's book:
if (QApplication::reverseLayout()) { backAct->setIconSet(forwardIcon); forwardAct->setIconSet(backIcon); } else { backAct->setIconSet(backIcon); forwardAct->setIconSet(forwardIcon); }
Is it too expensive if I ask for this to be somehow on the API?
On Wednesday 02 March 2005 23:13, Munzir Taha wrote:
The image of the pointing arrow needs to always be reversed in QFileDialog::getExistingDirectory(), ::getOpenFileName(s)() and ::getSaveFileName() when the layout direction is reversed. I believe Qt should implement this on the API and attach it to the reverse situation.
Now the left and right arrows on applications/dialogs/widgets should be swapped when dealing with a right-to-left language. We need to always do it as follows as mentioned by blanchette's book:
if (QApplication::reverseLayout()) { backAct->setIconSet(forwardIcon); forwardAct->setIconSet(backIcon); } else { backAct->setIconSet(backIcon); forwardAct->setIconSet(forwardIcon); }
Is it too expensive if I ask for this to be somehow on the API?
It's nothing we will do for 4.0. I'll set it on the list of feature requests for 4.1 though.
Lars
trans-ar@lists.fedoraproject.org