[frameworks-kwidgetsaddons] [Bug 396450] KCollapsibleGroupBox: wrong position in parent layout if there is a QLabel with word-wrap

2021-08-25 Thread Ahmad Samir
https://bugs.kde.org/show_bug.cgi?id=396450

Ahmad Samir  changed:

   What|Removed |Added

 CC||a.samir...@gmail.com

--- Comment #5 from Ahmad Samir  ---
I tested this, and with and without the above commit the issue seems to be
fixed.

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

[frameworks-kwidgetsaddons] [Bug 396450] KCollapsibleGroupBox: wrong position in parent layout if there is a QLabel with word-wrap

2018-08-04 Thread Elvis Angelaccio
https://bugs.kde.org/show_bug.cgi?id=396450

--- Comment #4 from Elvis Angelaccio  ---
Git commit e8519d6af2ad2b9c342a270a915e613bc88dff47 by Elvis Angelaccio.
Committed on 04/08/2018 at 15:02.
Pushed by elvisangelaccio into branch 'master'.

Add workaround for labels with word-wrapping

Summary:
It's not clear why, but the combination of a word-wrapped QLabel with
the `setFocusPolicy()` call in `overrideFocusPolicyOf()` seems to break
the positioning of the groupbox in its parent layout.

Until we understand where the bug is and how to fix it, we can toggle
the groupbox twice when we detect that a QLabel with word-wrapping
enabled has been added as child. Not clear why (again), but this fixes
(or at least hides) the issue.

Test Plan: Apply the patch, then run `kcollapsiblegroupboxtest` with/without
the workaround compiled in.

Reviewers: davidedmundson

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D13570

M  +12   -0src/kcollapsiblegroupbox.cpp
M  +6-0tests/kcollapsiblegroupboxtest.cpp

https://commits.kde.org/kwidgetsaddons/e8519d6af2ad2b9c342a270a915e613bc88dff47

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

[frameworks-kwidgetsaddons] [Bug 396450] KCollapsibleGroupBox: wrong position in parent layout if there is a QLabel with word-wrap

2018-07-13 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=396450

--- Comment #3 from Nate Graham  ---
Patch available: https://phabricator.kde.org/D13570

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

[frameworks-kwidgetsaddons] [Bug 396450] KCollapsibleGroupBox: wrong position in parent layout if there is a QLabel with word-wrap

2018-07-13 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=396450

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org
 Ever confirmed|0   |1
 Status|UNCONFIRMED |CONFIRMED

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

[frameworks-kwidgetsaddons] [Bug 396450] KCollapsibleGroupBox: wrong position in parent layout if there is a QLabel with word-wrap

2018-07-12 Thread Elvis Angelaccio
https://bugs.kde.org/show_bug.cgi?id=396450

--- Comment #2 from Elvis Angelaccio  ---
Created attachment 113906
  --> https://bugs.kde.org/attachment.cgi?id=113906=edit
Actual layout

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

[frameworks-kwidgetsaddons] [Bug 396450] KCollapsibleGroupBox: wrong position in parent layout if there is a QLabel with word-wrap

2018-07-12 Thread Elvis Angelaccio
https://bugs.kde.org/show_bug.cgi?id=396450

--- Comment #1 from Elvis Angelaccio  ---
Created attachment 113905
  --> https://bugs.kde.org/attachment.cgi?id=113905=edit
Expected layout

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