Temporarily disabled "Show empty desktops minimized" option.

This commit was not squashed so that it can be easily undone
when issue #10 is solved.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/9/head
Mavridis Philippe 4 years ago
parent 0267f1cf49
commit 48f570eda8
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -47,10 +47,14 @@ KomposeLayout::~KomposeLayout()
void KomposeLayout::setType( int t ) void KomposeLayout::setType( int t )
{ {
/*
if ( t == TLAYOUT_TASKCONTAINERS && if ( t == TLAYOUT_TASKCONTAINERS &&
!KomposeSettings::instance()->getDynamicVirtDeskLayout() ) !KomposeSettings::instance()->getDynamicVirtDeskLayout() )
t = TLAYOUT_GENERIC; t = TLAYOUT_GENERIC;
layoutType = t; layoutType = t;
*/
layoutType = TLAYOUT_GENERIC;
} }

@ -258,10 +258,12 @@ KomposePreferences::KomposePreferences()
TQVBoxLayout *page3Layout = new TQVBoxLayout( page3, 0, KDialog::spacingHint() ); TQVBoxLayout *page3Layout = new TQVBoxLayout( page3, 0, KDialog::spacingHint() );
TQVGroupBox *virtDesksLayoutGroupBox = new TQVGroupBox( i18n("Grouped by Virtual Desktops"), page3 ); TQVGroupBox *virtDesksLayoutGroupBox = new TQVGroupBox( i18n("Grouped by Virtual Desktops"), page3 );
/*
dynamicVirtDeskLayout = new TQCheckBox(i18n("Layout empty virtual desktops minimized"), virtDesksLayoutGroupBox ); dynamicVirtDeskLayout = new TQCheckBox(i18n("Layout empty virtual desktops minimized"), virtDesksLayoutGroupBox );
TQString dynamicVirtDeskLayoutHelp = i18n("Check this if you want empty virtual desktops to take less space on the screen.\nUncheck it if you want them to be arranged statically, each of the same size."); TQString dynamicVirtDeskLayoutHelp = i18n("Check this if you want empty virtual desktops to take less space on the screen.\nUncheck it if you want them to be arranged statically, each of the same size.");
TQWhatsThis::add( dynamicVirtDeskLayout, dynamicVirtDeskLayoutHelp ); TQWhatsThis::add( dynamicVirtDeskLayout, dynamicVirtDeskLayoutHelp );
TQToolTip::add( dynamicVirtDeskLayout, dynamicVirtDeskLayoutHelp ); TQToolTip::add( dynamicVirtDeskLayout, dynamicVirtDeskLayoutHelp );
*/
TQGrid *desktopColorsGroupBox = new TQGrid( 2, virtDesksLayoutGroupBox ); TQGrid *desktopColorsGroupBox = new TQGrid( 2, virtDesksLayoutGroupBox );
desktopColorsGroupBox->setSpacing( 4 ); desktopColorsGroupBox->setSpacing( 4 );
@ -337,7 +339,7 @@ void KomposePreferences::fillPages()
passiveScreenshots->setChecked( KomposeSettings::instance()->getPassiveScreenshots() ); passiveScreenshots->setChecked( KomposeSettings::instance()->getPassiveScreenshots() );
screenshotGrabDelay->setValue( KomposeSettings::instance()->getScreenshotGrabDelay() / 1000000 ); screenshotGrabDelay->setValue( KomposeSettings::instance()->getScreenshotGrabDelay() / 1000000 );
cacheScaledPixmaps->setChecked( KomposeSettings::instance()->getCacheScaledPixmaps() ); cacheScaledPixmaps->setChecked( KomposeSettings::instance()->getCacheScaledPixmaps() );
dynamicVirtDeskLayout->setChecked( KomposeSettings::instance()->getDynamicVirtDeskLayout() ); // dynamicVirtDeskLayout->setChecked( KomposeSettings::instance()->getDynamicVirtDeskLayout() );
imageEffects->setChecked( KomposeSettings::instance()->getImageEffects() ); imageEffects->setChecked( KomposeSettings::instance()->getImageEffects() );
blurBackground->setChecked( KomposeSettings::instance()->getBlurBackground() ); blurBackground->setChecked( KomposeSettings::instance()->getBlurBackground() );
@ -407,7 +409,7 @@ void KomposePreferences::slotApply()
KomposeSettings::instance()->setPassiveScreenshots( passiveScreenshots->isChecked() ); KomposeSettings::instance()->setPassiveScreenshots( passiveScreenshots->isChecked() );
KomposeSettings::instance()->setScreenshotGrabDelay( screenshotGrabDelay->value() * 1000000 ); KomposeSettings::instance()->setScreenshotGrabDelay( screenshotGrabDelay->value() * 1000000 );
KomposeSettings::instance()->setCacheScaledPixmaps( cacheScaledPixmaps->isChecked() ); KomposeSettings::instance()->setCacheScaledPixmaps( cacheScaledPixmaps->isChecked() );
KomposeSettings::instance()->setDynamicVirtDeskLayout( dynamicVirtDeskLayout->isChecked() ); // KomposeSettings::instance()->setDynamicVirtDeskLayout( dynamicVirtDeskLayout->isChecked() );
KomposeSettings::instance()->setImageEffects( imageEffects->isChecked() ); KomposeSettings::instance()->setImageEffects( imageEffects->isChecked() );
KomposeSettings::instance()->setBlurBackground( blurBackground->isChecked() ); KomposeSettings::instance()->setBlurBackground( blurBackground->isChecked() );
KomposeSettings::instance()->setShowDesktopNum( showDesktopNum->isChecked() ); KomposeSettings::instance()->setShowDesktopNum( showDesktopNum->isChecked() );

@ -96,7 +96,7 @@ void KomposeSettings::readConfig()
passiveScreenshots = kapp->config()->readBoolEntry("passiveScreenshots", true); passiveScreenshots = kapp->config()->readBoolEntry("passiveScreenshots", true);
screenshotGrabDelay = kapp->config()->readNumEntry("screenshotGrabDelay", 400000000); screenshotGrabDelay = kapp->config()->readNumEntry("screenshotGrabDelay", 400000000);
dynamicVirtDeskLayout = kapp->config()->readBoolEntry("dynamicVirtDeskLayout", true); // dynamicVirtDeskLayout = kapp->config()->readBoolEntry("dynamicVirtDeskLayout", true);
imageEffects = kapp->config()->readBoolEntry("imageEffects", true); imageEffects = kapp->config()->readBoolEntry("imageEffects", true);
blurBackground = kapp->config()->readBoolEntry("blurBackground", true); blurBackground = kapp->config()->readBoolEntry("blurBackground", true);
@ -160,7 +160,7 @@ void KomposeSettings::writeConfig()
kapp->config()->writeEntry("passiveScreenshots", passiveScreenshots ); kapp->config()->writeEntry("passiveScreenshots", passiveScreenshots );
kapp->config()->writeEntry("screenshotGrabDelay", screenshotGrabDelay); kapp->config()->writeEntry("screenshotGrabDelay", screenshotGrabDelay);
kapp->config()->writeEntry("dynamicVirtDeskLayout", dynamicVirtDeskLayout); // kapp->config()->writeEntry("dynamicVirtDeskLayout", dynamicVirtDeskLayout);
kapp->config()->writeEntry("imageEffects", imageEffects); kapp->config()->writeEntry("imageEffects", imageEffects);
kapp->config()->writeEntry("blurBackground", blurBackground); kapp->config()->writeEntry("blurBackground", blurBackground);

Loading…
Cancel
Save