From 5f0c90d4b6972c1ad22ba20b45cd1d3f88298099 Mon Sep 17 00:00:00 2001 From: harlekin Date: Wed, 27 Nov 2002 14:19:09 +0000 Subject: ability to show next days too added --- (limited to 'core/pim/today/plugins/datebook/datebookpluginwidget.cpp') diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp index a8ce059..c6aa2a6 100644 --- a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp @@ -47,6 +47,7 @@ void DatebookPluginWidget::readConfig() { m_show_location = cfg.readNumEntry( "showlocation", 1 ); m_show_notes = cfg.readNumEntry( "shownotes", 0 ); m_onlyLater = cfg.readNumEntry( "onlylater", 1 ); + m_moreDays = cfg.readNumEntry( "moredays", 0 ); } @@ -68,7 +69,7 @@ void DatebookPluginWidget::getDates() { db = new DateBookDB; - QValueList list = db->getEffectiveEvents( date, date ); + QValueList list = db->getEffectiveEvents( date, date.addDays( m_moreDays ) ); qBubbleSort( list ); -- cgit v0.9.0.2