[Kst] [Bug 117973] KDualColorButton does not have parent

George Staikos staikos at kde.org
Mon Dec 19 17:30:15 CET 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=117973         
staikos kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From staikos kde org  2005-12-19 17:30 -------
SVN commit 489731 by staikos:

try hard to set a parent for the dialog so it doesn't fall behind when created
by designer.
BUG: 117973


 M  +5 -1      kdualcolorbutton.cpp  
 M  +2 -0      kdualcolorbutton.h  


--- branches/KDE/3.5/kdelibs/kdeui/kdualcolorbutton.cpp #489730:489731
 @ -36,7 +36,11  @
   : QWidget(parent, name),
     d (new KDualColorPrivate)
 {
-    d->dialogParent = dialogParent;
+    if (!dialogParent && parent) {
+	d->dialogParent = parent;
+    } else {
+	d->dialogParent = dialogParent;
+    }
 
     arrowBitmap = new QBitmap(dcolorarrow_width, dcolorarrow_height,
                               (const unsigned char *)dcolorarrow_bits, true);
--- branches/KDE/3.5/kdelibs/kdeui/kdualcolorbutton.h #489730:489731
 @ -61,6 +61,8  @
      * Constructs a new KDualColorButton using the default black and white
      * colors.
      *
+     * As of KDE 3.5, sets the dialog parent to the same as "parent" if that
+     * argument is non-null.
      */
     KDualColorButton(QWidget *parent=0, const char *name=0, QWidget* dialogParent=0);


More information about the Kst mailing list