Skip to content
  • Marco Martin's avatar
    be less aggressive when to disable borders · 94ea668f
    Marco Martin authored
    Summary:
    if the control height is
    2*Metrics::LineEdit_FrameWidth + option->fontMetrics.height()
    it means that "it just fits", therefore still draw the frame
    
    the qqc2-desktop style uses that logic to get default line edit
    heights, so they all got disabled by just one pixel
    
    Test Plan: tested qwidget and qml apps
    
    Reviewers: #plasma, hpereiradacosta
    
    Reviewed By: hpereiradacosta
    
    Subscribers: plasma-devel
    
    Tags: #plasma
    
    Differential Revision: https://phabricator.kde.org/D8160
    94ea668f