[Bug 176473] New: [PATCH] fix KDialog to use platform native layout spacing and margins

Christoph Feck christoph.feck at mathe-kapiert.de
Sat Nov 29 18:33:04 CET 2008


http://bugs.kde.org/show_bug.cgi?id=176473

           Summary: [PATCH] fix KDialog to use platform native layout
                    spacing and margins
           Product: kdelibs
           Version: 4.1
          Platform: Compiled Sources
        OS/Version: unspecified
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: kdeui
        AssignedTo: kdelibs-bugs at kde.org
        ReportedBy: christoph.feck at mathe-kapiert.de


Version:            (using Devel)
Installed from:    Compiled sources

KDialog used to have fixed values for spacing and margins. This patch makes it
use the style's values, resulting in platform native spacing and margins (which
can be different depending on widget pairs, see
QStyle::layoutSpacingImplementation() ).

Applications should not use marginHint(), spacingHint(), resizeLayout(), and
updateGeometry() if possible. These should be deprecated.

For compatibility, the marginHint() and spacingHint() values can still be
queried, and they are now delegated to the style. KStyle returns the same
default values as old KDialog, so no behaviour change. resizeLayout() and
updateGeometry is unchanged for compatibility.

Styles can reimplement QStyle::layoutSpacingImplementation() and
QStyle::PM_Layout*Margin to override defaults.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kdelibs-bugs mailing list