-rw-r--r-- | core/pim/today/TODO | 6 | ||||
-rw-r--r-- | core/pim/today/todayconfig.cpp | 14 | ||||
-rw-r--r-- | core/pim/today/todayconfig.h | 2 |
3 files changed, 15 insertions, 7 deletions
diff --git a/core/pim/today/TODO b/core/pim/today/TODO index 6634cad..49503bd 100644 --- a/core/pim/today/TODO +++ b/core/pim/today/TODO @@ -2,2 +2,8 @@ TODO for today: +- all icons clickable + +- retail rom mail plugin (z) + +- autostart on retail rom (Z) + * show "upcoming appointents the next days diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp index 9ff9ba6..3fc5830 100644 --- a/core/pim/today/todayconfig.cpp +++ b/core/pim/today/todayconfig.cpp @@ -106,4 +106,3 @@ void TodayConfig::setAutoStart() { cfg.setGroup( "Autostart" ); - int autostart = cfg.readNumEntry( "autostart", 1 ); - if ( autostart ) { + if ( m_autoStart ) { QCopEnvelope e( "QPE/System", "autoStart(QString,QString,QString)" ); @@ -111,3 +110,3 @@ void TodayConfig::setAutoStart() { e << QString( "today" ); - e << m_autoStartTimer; + e << QString("%1").arg( m_autoStartTimer ); } else { @@ -127,4 +126,4 @@ void TodayConfig::readConfig() { CheckBoxAuto->setChecked( m_autoStart ); - m_autoStartTimer = cfg.readEntry( "autostartdelay", "0" ); - SpinBoxTime->setValue( m_autoStartTimer.toInt() ); + m_autoStartTimer = cfg.readNumEntry( "autostartdelay", 0 ); + SpinBoxTime->setValue( m_autoStartTimer ); @@ -170,3 +169,6 @@ void TodayConfig::writeConfig() { m_autoStartTimer = SpinBoxTime->value(); - cfg.readEntry( "autostartdelay", m_autoStartTimer ); + cfg.writeEntry( "autostartdelay", m_autoStartTimer ); + + // set autostart settings + setAutoStart(); } diff --git a/core/pim/today/todayconfig.h b/core/pim/today/todayconfig.h index 7c261bd..f23b850 100644 --- a/core/pim/today/todayconfig.h +++ b/core/pim/today/todayconfig.h @@ -56,3 +56,3 @@ private: int m_autoStart; - QString m_autoStartTimer; + int m_autoStartTimer; QStringList m_excludeApplets; |