[dolphin] [Bug 449211] Detail View mode doesn't support RTL properly

2024-12-29 Thread Felix Ernst
https://bugs.kde.org/show_bug.cgi?id=449211

Felix Ernst  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
  Latest Commit|https://invent.kde.org/syst |https://invent.kde.org/syst
   |em/dolphin/commit/ddba4f5fd |em/dolphin/-/commit/95542a3
   |88c4fa855e3f2eb0d9d95a6290d |89112491abf3a31c338e7d78f77
   |150a|85f48e

--- Comment #6 from Felix Ernst  ---
Git commit 95542a389112491abf3a31c338e7d78f7785f48e by Felix Ernst.
Committed on 29/12/2024 at 11:42.
Pushed by felixernst into branch 'master'.

Mirror details view mode for right-to-left languages

This commit implements mirroring of the details view mode for right-to-
left languages. This is the last of the Dolphin view modes which did
not adapt to right-to-left languages correctly.

Implementation-wise this is mostly about adapting the math so all the
information is placed correctly no matter the view mode or layout
direction. While most of the view actually changes the painting code
for right-to-left languages, for the column header I decided to keep
the logic left-to-right and instead reverse the order of the role
columns.

To implement this mirroring I needed to rework quite a bit of logic, so
I used the opportunity to fix some bugs/behaviur quirks:
- Left and right padding is now saved and restored separately instead
  of only saving the left padding
- Changing the right padding no longer disables "automatic column
  resizing".
- The grip handles for column resizing can now be grabbed when near the
  grip handle instead of only allowing grabbing when slightly to the
  left of the grip.
- Role column headers now only show a hover highlight effect when the
  mouse cursor is actually above that role and not above the grip
  handle or the padding.
- There is now a soft-boarder when shrinking the right padding so
  shrinking the padding "below zero width" will no longer immediately
  clear automatic resize behaviour. So now it is possible to simply
  remove the right padding by resizing it to zero width.
Related: bug 495942

# Acknowledgement

This work is part of a my project funded through the NGI0 Entrust Fund,
a fund established by NLnet with financial support from the European
Commission's Next Generation Internet programme, under the aegis of DG
Communications Networks, Content and Technology.

M  +14   -28   src/kitemviews/kitemlistcontroller.cpp
M  +10   -5src/kitemviews/kitemlistheader.cpp
M  +5-4src/kitemviews/kitemlistheader.h
M  +6-6src/kitemviews/kitemlistview.cpp
M  +30   -11   src/kitemviews/kitemlistwidget.cpp
M  +6-4src/kitemviews/kitemlistwidget.h
M  +48   -25   src/kitemviews/kstandarditemlistwidget.cpp
M  +2-1src/kitemviews/kstandarditemlistwidget.h
M  +182  -144  src/kitemviews/private/kitemlistheaderwidget.cpp
M  +25   -12   src/kitemviews/private/kitemlistheaderwidget.h
M  +6-2src/settings/dolphin_detailsmodesettings.kcfg
M  +7-1src/settings/dolphin_detailsmodesettings.upd
M  +9-4src/settings/viewmodes/viewsettingstab.cpp
M  +10   -5src/views/dolphinview.cpp
M  +1-1src/views/dolphinview.h

https://invent.kde.org/system/dolphin/-/commit/95542a389112491abf3a31c338e7d78f7785f48e

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 449211] Detail View mode doesn't support RTL properly

2024-12-18 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=449211

Bug Janitor Service  changed:

   What|Removed |Added

 Status|REOPENED|ASSIGNED

--- Comment #5 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/system/dolphin/-/merge_requests/877

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 449211] Detail View mode doesn't support RTL properly

2022-10-03 Thread Yaron Shahrabani
https://bugs.kde.org/show_bug.cgi?id=449211

Yaron Shahrabani  changed:

   What|Removed |Added

   Keywords||rtl
 CC||sh.ya...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 449211] Detail View mode doesn't support RTL properly

2022-06-17 Thread MohammadSaleh Kamyab
https://bugs.kde.org/show_bug.cgi?id=449211

MohammadSaleh Kamyab  changed:

   What|Removed |Added

 CC||mskf1...@envs.net

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 449211] Detail View mode doesn't support RTL properly

2022-04-04 Thread Felix Ernst
https://bugs.kde.org/show_bug.cgi?id=449211

Felix Ernst  changed:

   What|Removed |Added

 CC||fe.a.er...@gmail.com
 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

--- Comment #4 from Felix Ernst  ---
Re-opening this since the commit used to mark this bug report as resolved
caused a bunch of regressions and had to be reverted in
https://invent.kde.org/system/dolphin/-/commit/a4f9974daf1e533c39f67129b85193ad4d47e5ad.

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 449211] Detail View mode doesn't support RTL properly

2022-02-25 Thread Jan Blackquill
https://bugs.kde.org/show_bug.cgi?id=449211

Jan Blackquill  changed:

   What|Removed |Added

  Latest Commit||https://invent.kde.org/syst
   ||em/dolphin/commit/ddba4f5fd
   ||88c4fa855e3f2eb0d9d95a6290d
   ||150a
 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Jan Blackquill  ---
Git commit ddba4f5fd88c4fa855e3f2eb0d9d95a6290d150a by Janet Blackquill.
Committed on 25/02/2022 at 16:35.
Pushed by cblack into branch 'master'.

KStandardItemListWidget: handle RtL drawing properly

M  +65   -16   src/kitemviews/kstandarditemlistwidget.cpp

https://invent.kde.org/system/dolphin/commit/ddba4f5fd88c4fa855e3f2eb0d9d95a6290d150a

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 449211] Detail View mode doesn't support RTL properly

2022-02-01 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=449211

Bug Janitor Service  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #2 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/system/dolphin/-/merge_requests/339

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 449211] Detail View mode doesn't support RTL properly

2022-01-26 Thread Jan Blackquill
https://bugs.kde.org/show_bug.cgi?id=449211

Jan Blackquill  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Assignee|dolphin-bugs-n...@kde.org   |uhh...@gmail.com
 CC||uhh...@gmail.com
 Status|REPORTED|CONFIRMED

-- 
You are receiving this mail because:
You are watching all bug changes.

[dolphin] [Bug 449211] Detail View mode doesn't support RTL properly

2022-01-26 Thread Zayed Al-Saidi
https://bugs.kde.org/show_bug.cgi?id=449211

--- Comment #1 from Zayed Al-Saidi  ---
Created attachment 145970
  --> https://bugs.kde.org/attachment.cgi?id=145970&action=edit
Correct standard QTreeWidget with Qt::RightToLeft

-- 
You are receiving this mail because:
You are watching all bug changes.