summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-02-09 10:33:00 (UTC)
committer zautrix <zautrix>2005-02-09 10:33:00 (UTC)
commit968099947455adc0e8681aedf8c161327e311f38 (patch) (side-by-side diff)
tree2c4983417cd6d7348765a58990eac50aed8700e6
parentd0ab37d35ca9a9d919c9fc4856f3314bfef6dd5a (diff)
downloadkdepimpi-968099947455adc0e8681aedf8c161327e311f38.zip
kdepimpi-968099947455adc0e8681aedf8c161327e311f38.tar.gz
kdepimpi-968099947455adc0e8681aedf8c161327e311f38.tar.bz2
start fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagendaview.cpp10
-rw-r--r--korganizer/koagendaview.h1
-rw-r--r--korganizer/koviewmanager.cpp7
3 files changed, 18 insertions, 0 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp
index 0d36946..13d8398 100644
--- a/korganizer/koagendaview.cpp
+++ b/korganizer/koagendaview.cpp
@@ -1535,2 +1535,12 @@ void KOAgendaView::setStartHour( int h )
}
+void KOAgendaView::setInitStartHour()
+{
+
+ if ( KOPrefs::instance()->mCenterOnCurrentTime )
+ setStartHour( QTime::currentTime ().hour() );
+ else
+ setStartHour( KOPrefs::instance()->mDayBegins );
+
+}
+
diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h
index 4a058ce..8b8bac0 100644
--- a/korganizer/koagendaview.h
+++ b/korganizer/koagendaview.h
@@ -179,2 +179,3 @@ class KOAgendaView : public KOEventView {
public slots:
+ void setInitStartHour();
virtual void updateView();
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp
index b0f26d1..f8f6c1d 100644
--- a/korganizer/koviewmanager.cpp
+++ b/korganizer/koviewmanager.cpp
@@ -96,3 +96,10 @@ void KOViewManager::readSettings(KConfig *config)
else {
+ config->setGroup( "Views" );
+ int dateCount = config->readNumEntry( "ShownDatesCount", 7 );
+ mCurrentAgendaView = dateCount;
showAgendaView();
+ mCurrentAgendaView = dateCount;
+#ifdef DESKTOP_VERSION
+ QTimer::singleShot( 1000, mAgendaView, SLOT ( setInitStartHour() ) );
+#endif
}