author | zautrix <zautrix> | 2005-03-28 15:16:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-28 15:16:46 (UTC) |
commit | 435d67be852dc98b460bd3123a2164131db82334 (patch) (unidiff) | |
tree | 5d031d970da9214e111079061ccae271752c33c0 /korganizer | |
parent | e4e6bda3a6b0a82e3f64db0fa5f7d60cab9f0e48 (diff) | |
download | kdepimpi-435d67be852dc98b460bd3123a2164131db82334.zip kdepimpi-435d67be852dc98b460bd3123a2164131db82334.tar.gz kdepimpi-435d67be852dc98b460bd3123a2164131db82334.tar.bz2 |
more fixes
-rw-r--r-- | korganizer/mainwindow.cpp | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index ad1c0cd..2da592b 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1660,14 +1660,44 @@ void MainWindow::saveOnClose() | |||
1660 | KOPrefs *p = KOPrefs::instance(); | 1660 | KOPrefs *p = KOPrefs::instance(); |
1661 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); | 1661 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); |
1662 | p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal ); | ||
1663 | p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal ); | ||
1664 | if ( filterToolBar ) { | ||
1665 | p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal ); | ||
1666 | } | ||
1667 | #ifdef DESKTOP_VERSION | ||
1668 | |||
1669 | QPoint myP; | ||
1670 | myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) ); | ||
1671 | if ( p->mToolBarHor ) | ||
1672 | p->mToolBarUp = myP.y() > height()/2; | ||
1673 | else | ||
1674 | p->mToolBarUp = myP.x() > width()/2; | ||
1675 | myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) ); | ||
1676 | if ( p->mToolBarHorV ) | ||
1677 | p->mToolBarUpV = myP.y() > height()/2; | ||
1678 | else | ||
1679 | p->mToolBarUpV = myP.x() > width()/2 ; | ||
1680 | myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) ); | ||
1681 | if ( p->mToolBarHorN ) | ||
1682 | p->mToolBarUpN = myP.y() > height()/2; | ||
1683 | else | ||
1684 | p->mToolBarUpN = myP.x() > width()/2 ; | ||
1685 | if ( filterToolBar ) { | ||
1686 | myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) ); | ||
1687 | if ( p->mToolBarHorF ) | ||
1688 | p->mToolBarUpF = myP.y() > height()/2; | ||
1689 | else | ||
1690 | p->mToolBarUpF = myP.x() > width()/2 ; | ||
1691 | } | ||
1692 | #else | ||
1662 | if ( p->mToolBarHor ) | 1693 | if ( p->mToolBarHor ) |
1663 | p->mToolBarUp = iconToolBar->y() > height()/2; | 1694 | p->mToolBarUp = iconToolBar->y() > height()/2; |
1664 | else | 1695 | else |
1665 | p->mToolBarUp = iconToolBar->x() > width()/2; | 1696 | p->mToolBarUp = iconToolBar->x() > width()/2; |
1666 | p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal ); | ||
1667 | if ( p->mToolBarHorV ) | 1697 | if ( p->mToolBarHorV ) |
1668 | p->mToolBarUpV = viewToolBar->y() > height()/2; | 1698 | p->mToolBarUpV = viewToolBar->y() > height()/2; |
1669 | else | 1699 | else |
1670 | p->mToolBarUpV = viewToolBar->x() > width()/2 ; | 1700 | p->mToolBarUpV = viewToolBar->x() > width()/2 ; |
1671 | p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal ); | 1701 | |
1672 | if ( p->mToolBarHorN ) | 1702 | if ( p->mToolBarHorN ) |
1673 | p->mToolBarUpN = navigatorToolBar->y() > height()/2; | 1703 | p->mToolBarUpN = navigatorToolBar->y() > height()/2; |
@@ -1675,5 +1705,4 @@ void MainWindow::saveOnClose() | |||
1675 | p->mToolBarUpN = navigatorToolBar->x() > width()/2 ; | 1705 | p->mToolBarUpN = navigatorToolBar->x() > width()/2 ; |
1676 | if ( filterToolBar ) { | 1706 | if ( filterToolBar ) { |
1677 | p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal ); | ||
1678 | if ( p->mToolBarHorF ) | 1707 | if ( p->mToolBarHorF ) |
1679 | p->mToolBarUpF = filterToolBar->y() > height()/2; | 1708 | p->mToolBarUpF = filterToolBar->y() > height()/2; |
@@ -1681,4 +1710,7 @@ void MainWindow::saveOnClose() | |||
1681 | p->mToolBarUpF = filterToolBar->x() > width()/2 ; | 1710 | p->mToolBarUpF = filterToolBar->x() > width()/2 ; |
1682 | } | 1711 | } |
1712 | #endif | ||
1713 | |||
1714 | |||
1683 | mView->writeSettings(); | 1715 | mView->writeSettings(); |
1684 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) | 1716 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) |