Diffstat (limited to 'noncore/graphics/opie-eye/gui/basesetup.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/basesetup.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/gui/basesetup.cpp b/noncore/graphics/opie-eye/gui/basesetup.cpp index fdf3466..b0fefbf 100644 --- a/noncore/graphics/opie-eye/gui/basesetup.cpp +++ b/noncore/graphics/opie-eye/gui/basesetup.cpp | |||
@@ -16,2 +16,3 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
16 | m_IconsizeLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_IconsizeLayout"); | 16 | m_IconsizeLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_IconsizeLayout"); |
17 | m_IntensityLayout = new QGridLayout( 0, 1, 1, 0, 6, "m_IntensityLayout"); | ||
17 | 18 | ||
@@ -35,3 +36,3 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
35 | m_Iconsize->setButtonSymbols( QSpinBox::PlusMinus ); | 36 | m_Iconsize->setButtonSymbols( QSpinBox::PlusMinus ); |
36 | m_Iconsize->setMaxValue( 64 ); | 37 | m_Iconsize->setMaxValue( 128 ); |
37 | m_Iconsize->setMinValue(12); | 38 | m_Iconsize->setMinValue(12); |
@@ -45,2 +46,13 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
45 | 46 | ||
47 | m_Intensity = new QSpinBox( this, "m_Intensity" ); | ||
48 | m_Intensity->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Fixed)); | ||
49 | m_Intensity->setButtonSymbols( QSpinBox::PlusMinus ); | ||
50 | m_Intensity->setMaxValue( 255 ); | ||
51 | m_Intensity->setMinValue(-255); | ||
52 | m_Intensity->setValue( 0 ); | ||
53 | m_IntensityLayout->addWidget( m_Intensity, 0, 1 ); | ||
54 | m_IntensityLabel = new QLabel( this, "m_IntensityLabel" ); | ||
55 | m_IntensityLabel->setText(tr("Default display brightness:")); | ||
56 | m_IntensityLayout->addWidget(m_IntensityLabel, 0, 0 ); | ||
57 | m_MainLayout->addLayout(m_IntensityLayout); | ||
46 | 58 | ||
@@ -67,2 +79,6 @@ BaseSetup::BaseSetup(Opie::Core::OConfig *a_cfg,QWidget * parent, const char * n | |||
67 | m_Iconsize->setValue(stime); | 79 | m_Iconsize->setValue(stime); |
80 | stime = m_cfg->readNumEntry("intensity",0); | ||
81 | if (stime<-255) stime = -255; | ||
82 | if (stime>255) stime = 255; | ||
83 | m_Intensity->setValue(stime); | ||
68 | } | 84 | } |
@@ -79,2 +95,3 @@ void BaseSetup::save_values() | |||
79 | m_cfg->writeEntry("iconsize",m_Iconsize->value()); | 95 | m_cfg->writeEntry("iconsize",m_Iconsize->value()); |
96 | m_cfg->writeEntry("intensity",m_Intensity->value()); | ||
80 | } | 97 | } |