author | zautrix <zautrix> | 2005-03-22 09:43:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-22 09:43:18 (UTC) |
commit | dfd7d8d53c7ab916dee820c2371195a5dce134a4 (patch) (side-by-side diff) | |
tree | 9ae8f762a30ce340f1a90efc0a9829f83f7043c8 /korganizer/calendarview.cpp | |
parent | d18536f758f4cf64d5c59d7a7c814e6ff12f9a3d (diff) | |
download | kdepimpi-dfd7d8d53c7ab916dee820c2371195a5dce134a4.zip kdepimpi-dfd7d8d53c7ab916dee820c2371195a5dce134a4.tar.gz kdepimpi-dfd7d8d53c7ab916dee820c2371195a5dce134a4.tar.bz2 |
more layout fixes
-rw-r--r-- | korganizer/calendarview.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 8100e25..9a4e719 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -1880,17 +1880,8 @@ void CalendarView::readSettings() } 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; @@ -1904,24 +1895,17 @@ void CalendarView::readSettings() sizes << 100; } mLeftFrame->setSizes(sizes); sizes = config->readIntListEntry("Main Splitter Frame"); + resetval = 0; + maxVal = 0; 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; |