Ticket #57554: patch-aqua-widget-alignment.diff

File patch-aqua-widget-alignment.diff, 1.2 KB (added by RJVB (René Bertin), 2 years ago)
  • kdeui/widgets/kmultitabbar.cpp

    # backport from https://git.reviewboard.kde.org/r/128005
    
    diff --git a/kdeui/widgets/kmultitabbar.cpp b/kdeui/widgets/kmultitabbar.cpp
    index d090f5c04c682d9474d0becd4de64cebcfc8f869..62112aed74796ae7db3ba5816b6d0a6b5aa507fd 100644
    a b KMultiTabBarButton::KMultiTabBarButton(const QPixmap& pic, const QString& text, 
    151151        // If keyboard navigation is wanted, then only the bar should take focus,
    152152        // and arrows could change the focused button; but generally, tabbars don't take focus anyway.
    153153        setFocusPolicy(Qt::NoFocus);
     154        setAttribute(Qt::WA_LayoutUsesWidgetRect);
    154155}
    155156
    156157KMultiTabBarButton::~KMultiTabBarButton()
  • kfile/kurlnavigatorbutton.cpp

    diff --git a/kfile/kurlnavigatorbutton.cpp b/kfile/kurlnavigatorbutton.cpp
    index a37f2e63e93ee2dc71a8afd2a25ddce8bee7bf66..e11545a413f431bf567a23ad229d40fca015ed56 100644
    a b KUrlNavigatorButton::KUrlNavigatorButton(const KUrl& url, QWidget* parent) : 
    5555    setAcceptDrops(true);
    5656    setUrl(url);
    5757    setMouseTracking(true);
     58    setAttribute(Qt::WA_LayoutUsesWidgetRect);
    5859
    5960    m_openSubDirsTimer = new QTimer(this);
    6061    m_openSubDirsTimer->setSingleShot(true);