[graphics/drawy/gsoc2026] src/widgets/components: fix: scroll bar taking propertybar space

Abdelhadi Wael <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 8a3b59dab39819893b88bcc7ed8d15264c9a3f9e by Abdelhadi Wael.
Committed on 28/07/2026 at 15:12.
Pushed by mlaurent into branch 'gsoc2026'.

fix: scroll bar taking propertybar space

M  +3    -1    src/widgets/components/propertybar.cpp

https://invent.kde.org/graphics/drawy/-/commit/8a3b59dab39819893b88bcc7ed8d15264c9a3f9e

diff --git a/src/widgets/components/propertybar.cpp b/src/widgets/components/propertybar.cpp
index 952891e2..3dbe54d4 100644
--- a/src/widgets/components/propertybar.cpp
+++ b/src/widgets/components/propertybar.cpp
@@ -46,7 +46,9 @@ PropertyBar::PropertyBar(ApplicationContext *context, QWidget *parent)
 
 QSize PropertyBar::sizeHint() const
 {
-    return m_contentWidget->sizeHint();
+    QSize size = m_contentWidget->sizeHint();
+    size.setWidth(size.width() + style()->pixelMetric(QStyle::PM_ScrollBarExtent));
+    return size;
 }
 
 void PropertyBar::setPropertyManager(PropertyManager *manager)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.