# 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, |
151 | 151 | // If keyboard navigation is wanted, then only the bar should take focus, |
152 | 152 | // and arrows could change the focused button; but generally, tabbars don't take focus anyway. |
153 | 153 | setFocusPolicy(Qt::NoFocus); |
| 154 | setAttribute(Qt::WA_LayoutUsesWidgetRect); |
154 | 155 | } |
155 | 156 | |
156 | 157 | KMultiTabBarButton::~KMultiTabBarButton() |
diff --git a/kfile/kurlnavigatorbutton.cpp b/kfile/kurlnavigatorbutton.cpp
index a37f2e63e93ee2dc71a8afd2a25ddce8bee7bf66..e11545a413f431bf567a23ad229d40fca015ed56 100644
a
|
b
|
KUrlNavigatorButton::KUrlNavigatorButton(const KUrl& url, QWidget* parent) : |
55 | 55 | setAcceptDrops(true); |
56 | 56 | setUrl(url); |
57 | 57 | setMouseTracking(true); |
| 58 | setAttribute(Qt::WA_LayoutUsesWidgetRect); |
58 | 59 | |
59 | 60 | m_openSubDirsTimer = new QTimer(this); |
60 | 61 | m_openSubDirsTimer->setSingleShot(true); |