Review Request 114295: Fix textfield/lineedit hover frame with QtQuickControls

Martin Klapetek martin.klapetek at gmail.com
Fri Dec 6 09:26:09 UTC 2013



> On Dec. 6, 2013, 9:17 a.m., Hugo Pereira Da Costa wrote:
> > kstyles/oxygen/oxygenstyle.cpp, line 2415
> > <http://git.reviewboard.kde.org/r/114295/diff/1/?file=222533#file222533line2415>
> >
> >     I think the test can be made more efficient:
> >     if a widget is set, whether it is hovered or not, then the QtQuick tests should not be done at all, which should spare some time.
> >     
> >     This can likely be done by 
> >     "const bool isQtQuickControl = (!widget) && option && ...;
> >     
> >     can you confirm ?

Yup, you are right.


- Martin


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


On Dec. 4, 2013, 11:24 a.m., Martin Klapetek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/114295/
> -----------------------------------------------------------
> 
> (Updated Dec. 4, 2013, 11:24 a.m.)
> 
> 
> Review request for Plasma and Hugo Pereira Da Costa.
> 
> 
> Repository: kde-workspace
> 
> 
> Description
> -------
> 
> The QtQuickControls' textfield does not have a hover frame as it fails the input widget test (as widget == 0 when called from QQC), so the test is expanded to check if it's QQC textfield ("edit").
> 
> 
> Diffs
> -----
> 
>   kstyles/oxygen/oxygenstyle.cpp 50c217f 
> 
> Diff: http://git.reviewboard.kde.org/r/114295/diff/
> 
> 
> Testing
> -------
> 
> QQC textfield gets nice hover frame when mouse hovers over it.
> 
> 
> Thanks,
> 
> Martin Klapetek
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20131206/be811e88/attachment-0001.html>


More information about the Plasma-devel mailing list