summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-03-22 09:43:18 (UTC)
committer zautrix <zautrix>2005-03-22 09:43:18 (UTC)
commitdfd7d8d53c7ab916dee820c2371195a5dce134a4 (patch) (side-by-side diff)
tree9ae8f762a30ce340f1a90efc0a9829f83f7043c8 /korganizer
parentd18536f758f4cf64d5c59d7a7c814e6ff12f9a3d (diff)
downloadkdepimpi-dfd7d8d53c7ab916dee820c2371195a5dce134a4.zip
kdepimpi-dfd7d8d53c7ab916dee820c2371195a5dce134a4.tar.gz
kdepimpi-dfd7d8d53c7ab916dee820c2371195a5dce134a4.tar.bz2
more layout fixes
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp20
-rw-r--r--korganizer/datenavigatorcontainer.cpp2
2 files changed, 3 insertions, 19 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 8100e25..9a4e719 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -1883,11 +1883,2 @@ void CalendarView::readSettings()
}
- 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 ) {
@@ -1907,2 +1898,4 @@ void CalendarView::readSettings()
sizes = config->readIntListEntry("Main Splitter Frame");
+ resetval = 0;
+ maxVal = 0;
if (sizes.count() != 2) {
@@ -1914,11 +1907,2 @@ void CalendarView::readSettings()
}
- 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 ) {
diff --git a/korganizer/datenavigatorcontainer.cpp b/korganizer/datenavigatorcontainer.cpp
index ab0dd50..18756f0 100644
--- a/korganizer/datenavigatorcontainer.cpp
+++ b/korganizer/datenavigatorcontainer.cpp
@@ -274,3 +274,3 @@ QSize DateNavigatorContainer::sizeHint() const
{
- return mNavigatorView->sizeHint();
+ return mNavigatorView->yourSizeHint();
}