From 3c21c1dd33c9ed016453d792db7c360d0b42e3dd Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Mon, 6 Jul 2009 03:40:13 +0000 Subject: [PATCH] fixed GridLayout border and spacing of the B2 decoration, so that central widget is correctly located with respect to the decoration borders svn path=/branches/KDE/4.3/kdebase/workspace/; revision=991944 --- clients/b2/b2client.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clients/b2/b2client.cpp b/clients/b2/b2client.cpp index 90f425f474..ef2f18d046 100644 --- a/clients/b2/b2client.cpp +++ b/clients/b2/b2client.cpp @@ -419,6 +419,13 @@ void B2Client::init() button[i] = NULL; g = new QGridLayout(widget()); + + // force margin and spacing to 0 so that + // center widget is correctly located with respect + // to window border. + g->setSpacing(0); + g->setMargin(0); + // Left and right border width leftSpacer = new QSpacerItem(thickness, 16,