From 235c01e6a7e6b220b9821b945d96285261038f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 27 Dec 2009 18:51:57 +0000 Subject: [PATCH] Remove the duration spin box in the present windows config as this setting is unused in present windows. BUG: 220281 svn path=/trunk/KDE/kdebase/workspace/; revision=1066692 --- .../presentwindows/presentwindows_config.cpp | 7 - .../presentwindows/presentwindows_config.ui | 207 +++++++----------- 2 files changed, 83 insertions(+), 131 deletions(-) diff --git a/effects/presentwindows/presentwindows_config.cpp b/effects/presentwindows/presentwindows_config.cpp index 7807d9eaae..58e117725e 100644 --- a/effects/presentwindows/presentwindows_config.cpp +++ b/effects/presentwindows/presentwindows_config.cpp @@ -71,7 +71,6 @@ PresentWindowsEffectConfig::PresentWindowsEffectConfig(QWidget* parent, const QV m_ui->shortcutEditor->addCollection( m_actionCollection ); connect( m_ui->layoutCombo, SIGNAL( currentIndexChanged( int )), this, SLOT( changed() )); - connect( m_ui->rearrangeDurationSpin, SIGNAL( valueChanged( int )), this, SLOT( changed() )); connect( m_ui->displayTitleBox, SIGNAL( stateChanged( int )), this, SLOT( changed() )); connect( m_ui->displayIconBox, SIGNAL( stateChanged( int )), this, SLOT( changed() )); connect( m_ui->switchingBox, SIGNAL( stateChanged( int )), this, SLOT( changed() )); @@ -105,9 +104,6 @@ void PresentWindowsEffectConfig::load() int layoutMode = conf.readEntry( "LayoutMode", int( PresentWindowsEffect::LayoutNatural )); m_ui->layoutCombo->setCurrentIndex( layoutMode ); - m_ui->rearrangeDurationSpin->setValue( conf.readEntry( "RearrangeDuration", 0 )); - m_ui->rearrangeDurationSpin->setSuffix(ki18np(" millisecond", " milliseconds")); - bool displayTitle = conf.readEntry( "DrawWindowCaptions", true ); m_ui->displayTitleBox->setChecked( displayTitle ); @@ -155,8 +151,6 @@ void PresentWindowsEffectConfig::save() int layoutMode = m_ui->layoutCombo->currentIndex(); conf.writeEntry( "LayoutMode", layoutMode ); - conf.writeEntry( "RearrangeDuration", m_ui->rearrangeDurationSpin->value() ); - conf.writeEntry( "DrawWindowCaptions", m_ui->displayTitleBox->isChecked() ); conf.writeEntry( "DrawWindowIcons", m_ui->displayIconBox->isChecked() ); conf.writeEntry( "TabBox", m_ui->switchingBox->isChecked() ); @@ -193,7 +187,6 @@ void PresentWindowsEffectConfig::save() void PresentWindowsEffectConfig::defaults() { m_ui->layoutCombo->setCurrentIndex( int( PresentWindowsEffect::LayoutNatural )); - m_ui->rearrangeDurationSpin->setValue( 0 ); m_ui->displayTitleBox->setChecked( true ); m_ui->displayIconBox->setChecked( true ); m_ui->switchingBox->setChecked( false ); diff --git a/effects/presentwindows/presentwindows_config.ui b/effects/presentwindows/presentwindows_config.ui index 1426be1c75..b9ed9c42ea 100644 --- a/effects/presentwindows/presentwindows_config.ui +++ b/effects/presentwindows/presentwindows_config.ui @@ -6,128 +6,11 @@ 0 0 - 542 + 595 441 - - - - Appearance - - - - - - Rearrange &duration: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - rearrangeDurationSpin - - - - - - - - 0 - 0 - - - - Default - - - 5000 - - - 10 - - - 0 - - - - - - - Layout mode: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - layoutCombo - - - - - - - - 0 - 0 - - - - - Natural - - - - - Regular Grid - - - - - Flexible Grid - - - - - - - - Display window &titles - - - - - - - Display window &icons - - - - - - - Use for window &switching - - - - - - - Ignore &minimized windows - - - - - - - Show &panels - - - - - - @@ -500,14 +383,91 @@ + + + + Appearance + + + + + + Layout mode: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + layoutCombo + + + + + + + Display window &titles + + + + + + + Display window &icons + + + + + + + Use for window &switching + + + + + + + Ignore &minimized windows + + + + + + + Show &panels + + + + + + + + 0 + 0 + + + + + Natural + + + + + Regular Grid + + + + + Flexible Grid + + + + + + + - - KIntSpinBox - QSpinBox -
knuminput.h
-
KWin::GlobalShortcutsEditor QWidget @@ -516,7 +476,6 @@
- rearrangeDurationSpin layoutCombo displayTitleBox displayIconBox