Review Request: Fix vertical positionning of "click" message in klineedit

Hugo Pereira Da Costa hugo at oxygen-icons.org
Sat May 22 03:13:49 BST 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/4042/#review5816
-----------------------------------------------------------


So, what's the outcome. It seems Aaron on Christoph sort of disagree on whether we should move to Qt's placeholder text.
The pros: cleaner code, and vertical alignment will be automatically handled by Qt (rather than copied here, in a way that might break everytime Qt changes QLineEdit::paintEvent. 

The cons: visual change for kde4.5. Also, this would make kdelibs explicitely depend on Qt4.7 (the code is there in Qt4.6 but hidden by #ifdefs). 


- Hugo


On 2010-05-20 22:34:59, Hugo Pereira Da Costa wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/4042/
> -----------------------------------------------------------
> 
> (Updated 2010-05-20 22:34:59)
> 
> 
> Review request for kdelibs.
> 
> 
> Summary
> -------
> 
> This patch makes a better job at painting klineEdit 'click' message (e.g. in systemsettings 'search' bar) in a way that is similar to what qlineedit::paintEvent does for normal text. 
> This notably fixes the vertical alignment of the "click" message for some styles, including oxygen (see attached screenshot)
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdelibs/kdeui/widgets/klineedit.cpp 1128996 
> 
> Diff: http://reviewboard.kde.org/r/4042/diff
> 
> 
> Testing
> -------
> 
> Tested with oxygen, plastique, skulpture, and bespin. It was checked that the "click message" is vertically positioned the same as normal text (from user input) is, with all styles 
> 
> 
> Screenshots
> -----------
> 
> vertically centered "click" message in systemsettings
>   http://reviewboard.kde.org/r/4042/s/399/
> 
> 
> Thanks,
> 
> Hugo
> 
>





More information about the kde-core-devel mailing list