When writing an RTL subject line in a new message, the subject line control stays left-aligned -- but it should be right-aligned; text in the message body does get the correct alignment automatically. Surprisingly, if the composer window is resized, the subject is then aligned correctly; but it should align correctly already when the subject is typed in. Reproducible: Always Steps to Reproduce: 0. Have an RTL language available for use (Arabic and Hebrew are the most common ones, AFAIK). 1. Start composing a new mail 2. Write an RTL subject 3. For comparison, also write an RTL (plaintext) body. Actual Results: Subject line is left-aligned even with RTL content Expected Results: Subject line should set its alignment according to its directionality As noted, resizing the composer window appears to update alignment. Note that directionality is set correctly automatically; the problem is only with alignment. An image showing the problem will be attached shortly (why can't I add it now...?) This is a regression from KMail1.
Created attachment 81148 [details] A message with Hebrew subject and text In the attached screenshot is a message with Hebrew subject and text, as it is displayed when entered naturally. The subject line (red) is left-aligned, which is wrong; the body text (blue) is right-aligned, which is correct.
In qlineedit is it ok ? for example addressline?
Yes, address lines changed alignment properly as they always have (there's a different problem there -- the "clear text" mark is in the field and it hides the first 1-2 characters, but that's the same as KMail1).
(In reply to comment #3) > Yes, address lines changed alignment properly as they always have (there's a > different problem there -- the "clear text" mark is in the field and it > hides the first 1-2 characters, but that's the same as KMail1). Ok for clear text report it to kdelibs
The issue from comment #3 has been fixed for 4.11, see bug 284072.
See comment 5 I close it. If it's still in 4.11 reopen it.
Laurent, I was referring to the "clear text mark hides the first 1-2 characters" that got fixed, not the "wrong text direction" this bug report is about. Shai, could you please update to KDE 4.11.2, and check if this works correctly now?
Finally got around to it -- it's a little hard since one cannot run a 4.11 KMail in a 4.10 KDE session, and there's essentially no documentation available on starting up an own-compiled-KDE session (there used to be some, I think, but now it's gove, presumably out-of-date as well). So I hope what I did was right -- used the .xssession, kde-env-master an kde-env-user files from kdesrc-build, prefixed PATH and LD_LIBRARY_PATH with ~/kde4/bin and ~/kde4/lib respectively, pointed DISPLAY at a freshly-started Xephyr, and ran startkde. I know this setting isn't perfect, because I couldn't get the keyboard layout switching to work. Anyway, under this environment, as Christoph said -- the clear-text-mark now behaves well, but the subject-line alignment is still wrong until the window is resized. Thus, reopening.
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present? If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Still as reported, with KMail 5.2.3, Using KDE Frameworks 5.25.0 and Qt 5.6.1 on Debian Testing.