author | alwin <alwin> | 2004-10-31 23:09:17 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-10-31 23:09:17 (UTC) |
commit | 01fb5d6957984fe6fe5ed2109a024be7e8159d16 (patch) (side-by-side diff) | |
tree | 861b351a92ee229815b51c822a31ba24c2ef3506 /noncore | |
parent | 708e8dfb654a89d105dc70f65a306917214f3b0e (diff) | |
download | opie-01fb5d6957984fe6fe5ed2109a024be7e8159d16.zip opie-01fb5d6957984fe6fe5ed2109a024be7e8159d16.tar.gz opie-01fb5d6957984fe6fe5ed2109a024be7e8159d16.tar.bz2 |
minimum slideshow time should be 1 not 0
-rw-r--r-- | noncore/graphics/opie-eye/gui/basesetup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/graphics/opie-eye/gui/basesetup.cpp b/noncore/graphics/opie-eye/gui/basesetup.cpp index 11974cf..1a354a5 100644 --- a/noncore/graphics/opie-eye/gui/basesetup.cpp +++ b/noncore/graphics/opie-eye/gui/basesetup.cpp @@ -12,17 +12,17 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n m_MainLayout = new QVBoxLayout( this, 11, 6, "m_MainLayout"); m_SlidetimeLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_SlidetimeLayout"); m_SlideShowTime = new QSpinBox( this, "m_SlideShowTime" ); m_SlideShowTime->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); m_SlideShowTime->setButtonSymbols( QSpinBox::PlusMinus ); m_SlideShowTime->setMaxValue( 60 ); - m_SlideShowTime->setMinValue(0); + m_SlideShowTime->setMinValue(1); m_SlideShowTime->setValue( 2 ); m_SlideShowTime->setSuffix(tr(" seconds")); m_SlidetimeLayout->addWidget( m_SlideShowTime, 0, 1 ); m_SlidetimeLabel = new QLabel( this, "m_SlidetimeLabel" ); m_SlidetimeLabel->setText(tr("Slideshow timeout:")); m_SlidetimeLayout->addWidget( m_SlidetimeLabel, 0, 0 ); @@ -31,17 +31,17 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n m_ShowToolBar = new QCheckBox( this, "m_ShowToolBar" ); m_ShowToolBar->setText(tr("Show toolbar on startup")); m_MainLayout->addWidget( m_ShowToolBar ); spacer1 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding ); m_MainLayout->addItem( spacer1 ); int stime = m_cfg->readNumEntry("base_slideshowtimeout",2); - if (stime<0) stime=2; + if (stime<1) stime=2; if (stime>60) stime=60; m_SlideShowTime->setValue(stime); bool stoolbar = m_cfg->readBoolEntry("base_showtoolbar",true); m_ShowToolBar->setChecked(stoolbar); } BaseSetup::~BaseSetup() |