From 265158bb07be9dd35ab3752895ec94afa85352a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 12 Jun 2010 07:06:36 +0000 Subject: [PATCH] Drop the TabBox preview as it's ugly and doesn't work correctly. I will add a better solution for 4.6. svn path=/trunk/KDE/kdebase/workspace/; revision=1137270 --- kcmkwin/kwintabbox/layoutconfig.cpp | 22 +--------- kcmkwin/kwintabbox/layoutconfig.ui | 65 ----------------------------- 2 files changed, 1 insertion(+), 86 deletions(-) diff --git a/kcmkwin/kwintabbox/layoutconfig.cpp b/kcmkwin/kwintabbox/layoutconfig.cpp index 908222ff34..cce16288ae 100644 --- a/kcmkwin/kwintabbox/layoutconfig.cpp +++ b/kcmkwin/kwintabbox/layoutconfig.cpp @@ -20,13 +20,8 @@ along with this program. If not, see . // own #include "layoutconfig.h" #include "ui_layoutconfig.h" -#include "previewhandlerimpl.h" // tabbox #include "tabboxconfig.h" -#include "tabboxhandler.h" -#include "tabboxview.h" -// Qt -#include namespace KWin { @@ -40,17 +35,14 @@ class LayoutConfigPrivate { public: LayoutConfigPrivate(); - ~LayoutConfigPrivate() { delete previewTabbox; } + ~LayoutConfigPrivate() { } TabBoxConfig config; Ui::LayoutConfigForm ui; - PreviewHandlerImpl* previewTabbox; }; LayoutConfigPrivate::LayoutConfigPrivate() - : previewTabbox( new PreviewHandlerImpl() ) { - previewTabbox->setConfig( config ); } /*************************************************** @@ -61,13 +53,6 @@ LayoutConfig::LayoutConfig(QWidget* parent) { d = new LayoutConfigPrivate; d->ui.setupUi( this ); - QVBoxLayout* layout = new QVBoxLayout; - QWidget* tabBoxView = tabBox->tabBoxView(); - tabBoxView->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding ); - layout->addWidget( tabBoxView ); - d->ui.previewWidget->setLayout( layout ); - tabBox->createModel(); - tabBox->setCurrentIndex( tabBox->first() ); // init the item layout combo box d->ui.itemLayoutCombo->addItem( i18n("Informative") ); @@ -107,7 +92,6 @@ TabBoxConfig& LayoutConfig::config() const void LayoutConfig::setConfig( const KWin::TabBox::TabBoxConfig& config ) { d->config = config; - tabBox->setConfig( config ); d->ui.selectedItemBox->setChecked( config.selectedItemViewPosition() != TabBoxConfig::NonePosition ); d->ui.layoutCombo->setCurrentIndex( config.layout() ); @@ -232,10 +216,6 @@ void LayoutConfig::changed() { d->config.setSelectedItemViewPosition( TabBoxConfig::NonePosition ); } - // update the preview - tabBox->setConfig( d->config ); - d->ui.previewWidget->layout()->invalidate(); - d->ui.previewWidget->update(); } } // namespace KWin diff --git a/kcmkwin/kwintabbox/layoutconfig.ui b/kcmkwin/kwintabbox/layoutconfig.ui index ba43deb96f..81017baa7f 100644 --- a/kcmkwin/kwintabbox/layoutconfig.ui +++ b/kcmkwin/kwintabbox/layoutconfig.ui @@ -233,71 +233,6 @@ - - - - - 0 - 0 - - - - - 400 - 200 - - - - QFrame::NoFrame - - - QFrame::Plain - - - Qt::ScrollBarAlwaysOff - - - Qt::ScrollBarAlwaysOff - - - true - - - - - 0 - 0 - 672 - 200 - - - - - 0 - 0 - - - - - 400 - 200 - - - - - - - - 0 - 0 - - - - - - - -