Summary: | support for "always LTR" toolbar items on RTL/BIDI desktops | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Diego Iastrubni <cuco3001> |
Component: | general | Assignee: | Stephan Kulow <coolo> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | grundleborg, rodda, tyrerj |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Diego Iastrubni
2004-10-25 21:26:48 UTC
First, I think that this is a major bug, not a wishlist, since it affects a lot of applications. The simplest solution is to have (when needed) a separate "*.rc" file for RTL. Unfortunately, this will not fix the problem for apps that don't yet control the toolbars buttons with an *.rc file. SVN commit 681256 by zander: Fix the odd usecase when we start in RTL mode which swaps the ordering of the buttons and thus makes the align-left and align-right ones be weirdly ordered. This fixes it so align-left is always to the left of align-right for KOffice. CCBUG: 92090 M +11 -2 SimpleStyleWidget.cpp --- trunk/koffice/shapes/text/dialogs/SimpleStyleWidget.cpp #681255:681256 @@ -35,8 +35,17 @@ widget.italic->setDefaultAction(tool->action("format_italic")); widget.strikeOut->setDefaultAction(tool->action("format_strike")); widget.underline->setDefaultAction(tool->action("format_underline")); - widget.alignLeft->setDefaultAction(tool->action("format_alignleft")); - widget.alignRight->setDefaultAction(tool->action("format_alignright")); + // RTL layout will reverse the button order, but the align left/right then get mixed up. + // this makes sure that whatever happens the 'align left' is to the left of the 'align right' + if(QApplication::isRightToLeft()) { + widget.alignLeft->setDefaultAction(tool->action("format_alignright")); + widget.alignRight->setDefaultAction(tool->action("format_alignleft")); + } + else { + widget.alignLeft->setDefaultAction(tool->action("format_alignleft")); + widget.alignRight->setDefaultAction(tool->action("format_alignright")); + } + widget.alignCenter->setDefaultAction(tool->action("format_aligncenter")); widget.alignBlock->setDefaultAction(tool->action("format_alignblock")); widget.superscript->setDefaultAction(tool->action("format_super")); SVN commit 842180 by gberg: Fix the back/play/stop/forward buttons to display in the same order even when amarok is run in right-to-left mode. CCBUG:92090 M +16 -4 MainToolbar.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=842180 This bug is now fixed in juk, kword and amarok. The solution as mentioned in comment #1 is used where applications use .rc files. Since there are no more examples given where the bug still exists, I am going to close it. Please reopen if there are places in KDE where this bug is still present. |