author | zautrix <zautrix> | 2005-03-20 20:53:07 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-20 20:53:07 (UTC) |
commit | e0351d382e7344191c3a7963eefe3396f816f7a0 (patch) (side-by-side diff) | |
tree | 69d5e8fc038387ab16e17fe8e9a3550abc59e5fa | |
parent | b32c8de5dcd6c4f8dce9415fb686970e2c991ebb (diff) | |
download | kdepimpi-e0351d382e7344191c3a7963eefe3396f816f7a0.zip kdepimpi-e0351d382e7344191c3a7963eefe3396f816f7a0.tar.gz kdepimpi-e0351d382e7344191c3a7963eefe3396f816f7a0.tar.bz2 |
nf
-rw-r--r-- | korganizer/calendarview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index ab59d00..96ced08 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -1832,65 +1832,65 @@ void CalendarView::readSettings() int maxVal = 0; if (sizes.count() != 3) { if ( KOPrefs::instance()->mVerticalScreen ) { resetval = mDateNavigator->sizeHint().width()+2; } else { resetval = mDateNavigator->sizeHint().height()+2; } } if ( !resetval ){// i.e. sizes.count() == 3 if ( KOPrefs::instance()->mVerticalScreen ) { if ( sizes[0] < mDateNavigator->sizeHint().width()+1 ) resetval = mDateNavigator->sizeHint().width()+2; } else { if ( sizes[0] < mDateNavigator->sizeHint().height()+1 ) resetval = mDateNavigator->sizeHint().height()+2; } } if ( resetval ) { sizes.clear(); if ( KOPrefs::instance()->mVerticalScreen ) { maxVal = QApplication::desktop()->width() -10; } else { maxVal = QApplication::desktop()->height()-10; } sizes << resetval; if ( maxVal < resetval + resetval) resetval = maxVal - resetval; sizes << resetval; sizes << 100; } mLeftFrame->setSizes(sizes); sizes = config->readIntListEntry("Main Splitter Frame"); - if (sizes.count() != 3) { + if (sizes.count() != 2) { if ( !KOPrefs::instance()->mVerticalScreen ) { resetval = mDateNavigator->sizeHint().width()+2; } else { resetval = mDateNavigator->sizeHint().height()+2; } } if ( !resetval ){// i.e. sizes.count() == 3 if ( !KOPrefs::instance()->mVerticalScreen ) { if ( sizes[0] < mDateNavigator->sizeHint().width()+1 ) resetval = mDateNavigator->sizeHint().width()+2; } else { if ( sizes[0] < mDateNavigator->sizeHint().height()+1 ) resetval = mDateNavigator->sizeHint().height()+2; } } if ( resetval ) { sizes.clear(); if ( !KOPrefs::instance()->mVerticalScreen ) { maxVal = QApplication::desktop()->width() -10; } else { maxVal = QApplication::desktop()->height()-10; } sizes << resetval; if ( maxVal < resetval + resetval) resetval = maxVal - resetval; sizes << resetval; } mMainFrame->setSizes(sizes); if ( dateCount == 5 ) mNavigator->selectWorkWeek(); else if ( dateCount == 7 ) mNavigator->selectWeek(); else mNavigator->selectDates( dateCount ); @@ -1934,66 +1934,66 @@ void CalendarView::readSettings() list = config->readListEntry("ViewerLayout"); if ( ! list.isEmpty() ) { x = list[0].toInt(); y = list[1].toInt(); w = list[2].toInt(); h = list[3].toInt(); getEventViewerDialog()->setGeometry(x,y,w,h); } #endif } void CalendarView::writeSettings() { // kdDebug() << "CalendarView::writeSettings" << endl; KConfig *config = KOGlobals::config(); mViewManager->writeSettings( config ); mTodoList->saveLayout(config,QString("Todo Layout")); mDialogManager->writeSettings( config ); //KOPrefs::instance()->usrWriteConfig(); KOPrefs::instance()->writeConfig(); writeFilterSettings(config); config->setGroup( "Views" ); config->writeEntry( "ShownDatesCount", mNavigator->selectedDates().count() ); QValueList<int> listINT = mLeftFrame->sizes(); config->writeEntry("Left Splitter Frame",listINT); - listINT = mMainFrame->sizes(); - config->writeEntry("Main Splitter Frame",listINT); + QValueList<int> listINT2 = mMainFrame->sizes(); + config->writeEntry("Main Splitter Frame",listINT2); #ifdef DESKTOP_VERSION config->setGroup("WidgetLayout"); QStringList list ;//= config->readListEntry("MainLayout"); int x,y,w,h; QWidget* wid; wid = topLevelWidget(); x = wid->geometry().x(); y = wid->geometry().y(); w = wid->width(); h = wid->height(); list.clear(); list << QString::number( x ); list << QString::number( y ); list << QString::number( w ); list << QString::number( h ); config->writeEntry("MainLayout",list ); wid = mEventEditor; x = wid->geometry().x(); y = wid->geometry().y(); w = wid->width(); h = wid->height(); list.clear(); list << QString::number( x ); list << QString::number( y ); list << QString::number( w ); list << QString::number( h ); config->writeEntry("EditEventLayout",list ); wid = mTodoEditor; x = wid->geometry().x(); y = wid->geometry().y(); |