summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/basesetup.cpp4
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
@@ -8,44 +8,44 @@
8BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * name, WFlags f) 8BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * name, WFlags f)
9 :QWidget(parent,name,f) 9 :QWidget(parent,name,f)
10{ 10{
11 m_cfg = a_cfg; 11 m_cfg = a_cfg;
12 m_MainLayout = new QVBoxLayout( this, 11, 6, "m_MainLayout"); 12 m_MainLayout = new QVBoxLayout( this, 11, 6, "m_MainLayout");
13 13
14 m_SlidetimeLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_SlidetimeLayout"); 14 m_SlidetimeLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_SlidetimeLayout");
15 15
16 m_SlideShowTime = new QSpinBox( this, "m_SlideShowTime" ); 16 m_SlideShowTime = new QSpinBox( this, "m_SlideShowTime" );
17 m_SlideShowTime->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); 17 m_SlideShowTime->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed));
18 m_SlideShowTime->setButtonSymbols( QSpinBox::PlusMinus ); 18 m_SlideShowTime->setButtonSymbols( QSpinBox::PlusMinus );
19 m_SlideShowTime->setMaxValue( 60 ); 19 m_SlideShowTime->setMaxValue( 60 );
20 m_SlideShowTime->setMinValue(0); 20 m_SlideShowTime->setMinValue(1);
21 m_SlideShowTime->setValue( 2 ); 21 m_SlideShowTime->setValue( 2 );
22 m_SlideShowTime->setSuffix(tr(" seconds")); 22 m_SlideShowTime->setSuffix(tr(" seconds"));
23 23
24 m_SlidetimeLayout->addWidget( m_SlideShowTime, 0, 1 ); 24 m_SlidetimeLayout->addWidget( m_SlideShowTime, 0, 1 );
25 25
26 m_SlidetimeLabel = new QLabel( this, "m_SlidetimeLabel" ); 26 m_SlidetimeLabel = new QLabel( this, "m_SlidetimeLabel" );
27 m_SlidetimeLabel->setText(tr("Slideshow timeout:")); 27 m_SlidetimeLabel->setText(tr("Slideshow timeout:"));
28 m_SlidetimeLayout->addWidget( m_SlidetimeLabel, 0, 0 ); 28 m_SlidetimeLayout->addWidget( m_SlidetimeLabel, 0, 0 );
29 m_MainLayout->addLayout( m_SlidetimeLayout ); 29 m_MainLayout->addLayout( m_SlidetimeLayout );
30 30
31 m_ShowToolBar = new QCheckBox( this, "m_ShowToolBar" ); 31 m_ShowToolBar = new QCheckBox( this, "m_ShowToolBar" );
32 m_ShowToolBar->setText(tr("Show toolbar on startup")); 32 m_ShowToolBar->setText(tr("Show toolbar on startup"));
33 m_MainLayout->addWidget( m_ShowToolBar ); 33 m_MainLayout->addWidget( m_ShowToolBar );
34 34
35 spacer1 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding ); 35 spacer1 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding );
36 m_MainLayout->addItem( spacer1 ); 36 m_MainLayout->addItem( spacer1 );
37 37
38 int stime = m_cfg->readNumEntry("base_slideshowtimeout",2); 38 int stime = m_cfg->readNumEntry("base_slideshowtimeout",2);
39 if (stime<0) stime=2; 39 if (stime<1) stime=2;
40 if (stime>60) stime=60; 40 if (stime>60) stime=60;
41 m_SlideShowTime->setValue(stime); 41 m_SlideShowTime->setValue(stime);
42 42
43 bool stoolbar = m_cfg->readBoolEntry("base_showtoolbar",true); 43 bool stoolbar = m_cfg->readBoolEntry("base_showtoolbar",true);
44 m_ShowToolBar->setChecked(stoolbar); 44 m_ShowToolBar->setChecked(stoolbar);
45} 45}
46 46
47BaseSetup::~BaseSetup() 47BaseSetup::~BaseSetup()
48{ 48{
49} 49}
50 50
51void BaseSetup::save_values() 51void BaseSetup::save_values()