From 5ad5e87db68b2fda1400a0c73752f5a9fb91bb4f Mon Sep 17 00:00:00 2001 From: Sandro Giessl Date: Fri, 3 Dec 2004 18:49:35 +0000 Subject: [PATCH] Add an extra margin around the preview. svn path=/trunk/kdebase/kwin/; revision=368152 --- kcmkwin/kwindecoration/kwindecoration.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/kcmkwin/kwindecoration/kwindecoration.cpp b/kcmkwin/kwindecoration/kwindecoration.cpp index 194351fdb6..d63a915525 100644 --- a/kcmkwin/kwindecoration/kwindecoration.cpp +++ b/kcmkwin/kwindecoration/kwindecoration.cpp @@ -154,17 +154,13 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const char* name, co // buttonLayout->addStretch(); // preview - QVBoxLayout* previewLayout = new QVBoxLayout(layout, KDialog::spacingHint()); + QVBoxLayout* previewLayout = new QVBoxLayout(layout, KDialog::spacingHint() ); + previewLayout->setMargin( KDialog::marginHint() ); - QFrame* preview_frame = new QFrame( this ); - preview_frame->setFrameShape( QFrame::NoFrame ); - QVBoxLayout* preview_layout = new QVBoxLayout( preview_frame, 0 ); - preview = new KDecorationPreview( preview_frame ); - preview_layout->addWidget( preview ); - previewLayout->addWidget( preview_frame ); - previewLayout->setStretchFactor( preview_frame, 10 ); + preview = new KDecorationPreview( this ); + previewLayout->addWidget(preview); - preview_frame->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + preview->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); tabWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); // Load all installed decorations into memory