[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    docker bug
From:       "C. Boemann" <cbr () boemann ! dk>
Date:       2009-04-23 8:53:35
Message-ID: 200904231053.35568.cbr () boemann ! dk
[Download RAW message or body]

Hi

I have worked a bit on the docker bug but can't seem to be able to 
reproduce it anymore.

That is pretty bad as I think I have an idea to how to fix it it.

I've attached a patch, which is neither sure to compile or anything, but if 
some of you can regularly reproduce the bug then please try this patch and 
see if it changes anything.

It might introduce other weird behaviour, but at least it'll give us a lead on 
what the original docker bug is all about

best regards
Casper

["dock.diff" (text/x-patch)]

Index: guiutils/KoToolDocker.cpp
===================================================================
--- guiutils/KoToolDocker.cpp	(revision 930872)
+++ guiutils/KoToolDocker.cpp	(working copy)
@@ -55,16 +55,21 @@
 void KoToolDocker::newOptionWidget(QWidget *optionWidget) {
     if(d->currentWidget == optionWidget)
         return;
+/*
     if(d->currentWidget) {
         d->currentWidget->hide();
         d->currentWidget->setParent(0);
     }
+*/
     d->currentWidget = optionWidget;
+*/
     connect(d->currentWidget, SIGNAL(destroyed(QObject*)), this, SLOT(optionWidgetDestroyed(QObject*)));
-    setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); // will be overwritten again next
+//    setMaximumSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); // will be overwritten again next
+
     setWidget(optionWidget);
-    adjustSize();
+/*    adjustSize();
     optionWidget->show();
+*/
     update(); // force qt to update the layout even when we are floating
 }
 


_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic