Bug 149343

Summary: [Qyoto]uics generate wrong cs code about QDockWidgetArea.
Product: [Developer tools] bindings Reporter: cjacker <jzhuang>
Component: generalAssignee: kde-bindings
Status: RESOLVED FIXED    
Severity: normal CC: dpldobrev
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description cjacker 2007-08-29 17:39:32 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

the committed patch from here
http://www.nabble.com/KDE-kdebindings-csharp-qyoto-t4254377.html
fix the toolbar Area issue. but the fix for DockWidget is no needed(I do not known whether there is a patch for Qt new versions to change the number to string. but it really broken QT 4.3.1 support.)

I am using Qt 4.3.1(also test Qt 4.3.0), for DockWidget Area, it use number instead of a string like(BottomDockWidgetArea...),here is a example generate by designer from qt-4.3.1.

  <widget class="QDockWidget" name="side_dock" >
   <attribute name="dockWidgetArea" >
    <number>1</number>
   </attribute>
   <widget class="QWidget" name="dockWidgetContents" />
  </widget>


also, in qnamespace.h
        LeftDockWidgetArea = 0x1,
        RightDockWidgetArea = 0x2,
        TopDockWidgetArea = 0x4,
        BottomDockWidgetArea = 0x8,

        DockWidgetArea_Mask = 0xf,
        AllDockWidgetAreas = DockWidgetArea_Mask,
        NoDockWidgetArea = 0

But, the AllDockWidgetAreas NoDockWidgetArea DockWidgetArea_Mask did not works at all. anyway, the original code of DockWidgetArea in uics is works, but the patch break it.