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

List:       kde-commits
Subject:    koffice/libs/guiutils
From:       Casper Boemann <cbr () boemann ! dk>
Date:       2009-05-31 13:40:00
Message-ID: 1243777200.532020.10869.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 975889 by boemann:

Try this to see if it fixes the docker problems


 M  +7 -2      KoToolDocker.cpp  


--- trunk/koffice/libs/guiutils/KoToolDocker.cpp #975888:975889
@@ -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
 }
 

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

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