[Konsole-devel] [PATCH] Qt adds extra space to layouts when it shouldn't.

Waldo Bastian bastian at kde.org
Tue Jun 3 12:11:33 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Qt assigns space to empty layouts leading to extra pixels that are undesired.

This problem becomes very clear with a QMainWindow in full-screen mode. 
Without any toolbar, statusbar or menubar the central widget should cover the 
full screen. However, topDock and bottomDock still get inserted in a 
QBoxLayout in that case and get space allocated, even though they have 
nothing to show. This makes that the central widget becomes 2 pixels less 
high than the screen.

See also http://bugs.kde.org/show_bug.cgi?id=42320

The following patch fixes the problem.

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+3JB5N4pvrENfboIRAu3BAKCqPTmR047uNbizeuUGaT2VtDrRlQCdEe4H
bQ9qwAkOYnsVTZzcaICfwgo=
=3/HN
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_layout.patch
Type: text/x-diff
Size: 1413 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20030603/8255b50c/attachment.bin>


More information about the konsole-devel mailing list