--Boundary-00=_1BJ3+z5WhW58S6y Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Qt assigns space to empty layouts leading to extra pixels that are undesire= d. This problem becomes very clear with a QMainWindow in full-screen mode.=20 Without any toolbar, statusbar or menubar the central widget should cover t= he=20 full screen. However, topDock and bottomDock still get inserted in a=20 QBoxLayout in that case and get space allocated, even though they have=20 nothing to show. This makes that the central widget becomes 2 pixels less=20 high than the screen. See also http://bugs.kde.org/show_bug.cgi?id=3D42320 The following patch fixes the problem. Cheers, Waldo =2D --=20 bastian@kde.org -=3D|[ SuSE, The Linux Desktop Experts ]|=3D- bastian@suse.= com =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+3JB5N4pvrENfboIRAu3BAKCqPTmR047uNbizeuUGaT2VtDrRlQCdEe4H bQ9qwAkOYnsVTZzcaICfwgo=3D =3D3/HN =2D----END PGP SIGNATURE----- --Boundary-00=_1BJ3+z5WhW58S6y Content-Type: text/x-diff; charset="us-ascii"; name="qt_layout.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qt_layout.patch" Index: kernel/qabstractlayout.cpp =================================================================== RCS file: /home/kde/qt-copy/src/kernel/qabstractlayout.cpp,v retrieving revision 1.49 diff -u -r1.49 qabstractlayout.cpp --- kernel/qabstractlayout.cpp 30 Oct 2002 01:54:07 -0000 1.49 +++ kernel/qabstractlayout.cpp 3 Jun 2003 11:43:03 -0000 @@ -412,8 +412,8 @@ hfw = wid->maximumHeight(); if ( hfw < wid->minimumHeight() ) hfw = wid->minimumHeight(); - if ( hfw < 1 ) - hfw = 1; + if ( hfw < 0 ) + hfw = 0; return hfw; } @@ -514,7 +514,7 @@ if ( wid->sizePolicy().verData() == QSizePolicy::Ignored ) s.setHeight( 1 ); s = s.boundedTo( wid->maximumSize() ) - .expandedTo( wid->minimumSize() ).expandedTo( QSize(1, 1) ); + .expandedTo( wid->minimumSize() ).expandedTo( QSize(0, 0) ); } return s; } Index: widgets/qdockarea.cpp =================================================================== RCS file: /home/kde/qt-copy/src/widgets/qdockarea.cpp,v retrieving revision 1.22 diff -u -r1.22 qdockarea.cpp --- widgets/qdockarea.cpp 30 Oct 2002 01:54:24 -0000 1.22 +++ widgets/qdockarea.cpp 3 Jun 2003 11:43:07 -0000 @@ -313,7 +311,7 @@ s = QMAX( s, dock_strut( dw, orientation() ) ); } - return orientation() == Horizontal ? QSize( 0, s+2 ) : QSize( s, 0 ); + return orientation() == Horizontal ? QSize( 0, s ? s+2 : 0 ) : QSize( s, 0 ); } --Boundary-00=_1BJ3+z5WhW58S6y Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ konsole-devel mailing list konsole-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/konsole-devel --Boundary-00=_1BJ3+z5WhW58S6y--