Bug 370947 - line edits 'delete' icon too big and pixalated with bigger fonts settings (11 instead 10pt). Uncovers a second icon below
Summary: line edits 'delete' icon too big and pixalated with bigger fonts settings (11...
Status: RESOLVED UPSTREAM
Alias: None
Product: frameworks-kcompletion
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: David Gil
URL:
Keywords:
: 377738 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-16 10:24 UTC by Achim Bohnet
Modified: 2017-03-18 17:52 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
oversized and pixalated 'delete' icons in kmail inline search and composer address field (130.80 KB, image/png)
2016-10-16 10:26 UTC, Achim Bohnet
Details
10pt proper & sharp (120.33 KB, image/png)
2016-10-25 14:57 UTC, Achim Bohnet
Details
11pt: oversized and pixelated (116.14 KB, image/png)
2016-10-25 14:58 UTC, Achim Bohnet
Details
Test QLineEdit in QtDesigner (116.76 KB, image/png)
2016-10-26 19:54 UTC, franz.bergesund
Details
Show that the delete arrow size is due to box size, not font (141.04 KB, image/png)
2016-10-26 20:03 UTC, franz.bergesund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Achim Bohnet 2016-10-16 10:24:57 UTC
My fonts are all + 1pt compared the default.   Now the quick search line edit above message list and
e.g. address fields in the composer show a IMHO unproportional big icon that is pixaled (see screenshot).

Further in the quick search line edit one sees below the pixalated delete icons the right parts of the normal sized delete icons

Reproducible: Always

Steps to Reproduce:
1.  Quit kmail
2. open fonts in system settings
3. set all fonts size to 11 (alternatively add 1pt to each fonts size)
4. start kmail.
5a.  type some text in the quick search like edit
5b. open composer and start typing an address

Actual Results:  
An pixalated (oversized)  delete icons appear on the right of the line edit.

Expected Results:  
a) Icons is not pixalated
b) Icons size should be a bit smaller   (ditto for the sharp icons and the lock icon)

I had a quick look at ohter apps:

kate open dialog:  delete icons sharp and unchanged with 11pt compared to 10 ptle
konsole change tab text dialog:  too big and pixalated like kmail composer
Comment 1 Achim Bohnet 2016-10-16 10:26:02 UTC
Created attachment 101581 [details]
oversized and pixalated 'delete' icons in kmail inline search and composer address field
Comment 2 Achim Bohnet 2016-10-16 10:37:12 UTC
While reverting the font change I've found a simpler way to reproduce:

1. kmail --composer
2. Type a view chars in the 'To:' line edit
3.  Set the 'General' font in system settings from 10 pt to 11pt and apply
-> 'delete' icons in the composer window is pixalated and too big.

Changing font size back to 10 pt 'fixes' the pixalation.
Comment 3 Laurent Montel 2016-10-16 15:34:17 UTC
it's not a kmail bug it's a kf5 bug.
kcompletion I will told you.

Please reassign
Comment 4 David Gil 2016-10-25 12:39:09 UTC
I can't reproduce the bug. Even with a font size of 20 the delete button remains the same size.

Would you please give me some more info or a hint that helps me reproduce it?

Does that happen in a dev environment or in production?
What distro is it? What version?
Comment 5 Achim Bohnet 2016-10-25 14:53:01 UTC
neon dev unstable (aka git master) in virtualbox 5.0.24

konsole 16.11.70
KDE Frameworks 5.28.0
Qt 5.7.0 (built against 5.7.0)
The xcb windowing system

Reproduce:
* start konsole
* double click on konsole tab
-> 'rename tab' dialog with poperly size sharp delete icon (see screenshot)

* open fonts in system settings
* change 'General' font from 10 pt to e.g. 11 pt
* 'Okay' to close dialog, 'Apply' to apply the setting
* look at 'Rename Tab' dialog of konsole (or reopen it)
-> 'rename tab' dialog with oversized and pixilated delete icon (see screenshot)
Comment 6 Achim Bohnet 2016-10-25 14:57:37 UTC
Created attachment 101777 [details]
10pt proper & sharp
Comment 7 Achim Bohnet 2016-10-25 14:58:10 UTC
Created attachment 101778 [details]
11pt: oversized and pixelated
Comment 8 franz.bergesund 2016-10-25 15:43:22 UTC
I managed to reproduce the bug on OpenSUSE Tumbleweed with:

* Konsole: 16.08.2
* Kmail: 5.3.0 (QtWebEngine)
* KDE Frameworks 5.26.0
* Qt 5.7.0 (built against 5.7.0)
* The xcb windowing system

But Kubuntu 16.04 is fine:
* Konsole: 15.12.3
* Kmail: 5.1.3
* KDE Frameworks 5.23.0
* Qt 5.5.1 (built against 5.5.1)
* The xcb windowing system

The delete icons in Kubuntu Konsole are circles with white "x", while in Kmail is the same as in the screenshots.
The icons in OpenSUSE are the same as in the screenshots.
Comment 9 Christoph Feck 2016-10-26 00:58:02 UTC
You could check Qt's designer to see if the issue is already in QLineEdit.
Comment 10 franz.bergesund 2016-10-26 19:54:19 UTC
I've tested as requested.

The problem shows up in QtCreator using QLineEdit with font size 12, only if the box is high enough. See the attachment.
Comment 11 franz.bergesund 2016-10-26 19:54:55 UTC
Created attachment 101809 [details]
Test QLineEdit in QtDesigner
Comment 12 franz.bergesund 2016-10-26 20:02:34 UTC
Actually in the QLineEdit the size of the delete arrow is not related with the font size but the box height, as seen in the following screenshot.

Probably in the tests that we have done, increasing the font size increases the box height just enough to repaint the arrow bigger.
Comment 13 franz.bergesund 2016-10-26 20:03:42 UTC
Created attachment 101810 [details]
Show that the delete arrow size is due to box size, not font
Comment 14 Christoph Feck 2016-10-27 00:59:46 UTC
Thanks for confirming this is actually caused by the Qt widgets.

Please report this issue directly to Qt developers via https://bugreports.qt.io/
Comment 15 David Gil 2016-10-28 15:09:40 UTC
Should I report it to Qt or has someone already done it?
Comment 16 Achim Bohnet 2016-10-29 22:49:13 UTC
Hi Gil, would be great if you report it to Qt.

Thx, Achim
Comment 17 David Gil 2016-11-08 09:18:34 UTC
https://bugreports.qt.io/browse/QTBUG-56981
Comment 18 Christoph Feck 2017-03-18 17:52:59 UTC
*** Bug 377738 has been marked as a duplicate of this bug. ***