Don't delete all the info pane's QWidget children on clear(). KDE SC 4.4's
Oxygen KStyle inserts children into widgets for its transition effects that would get deleted that way. Maybe this deserves some discussion some day if Oxygen is entitled to modify the application's object tree? Anyway, this fix works around it and everyone is happy for now. BUG:218478 CCMAIL:hugo@oxygen-icons.org svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1062035
This commit is contained in:
parent
44eae61e4f
commit
4ce72c8269
|
@ -33,6 +33,7 @@
|
|||
#include <kglobal.h>
|
||||
#include <kglobalsettings.h>
|
||||
#include <klocale.h>
|
||||
#include <kdebug.h>
|
||||
|
||||
/** Creates a new InfoPane instance
|
||||
@param parent the parent widget
|
||||
|
@ -47,7 +48,8 @@ InfoPane::InfoPane(QWidget* parent) :
|
|||
void InfoPane::clear()
|
||||
{
|
||||
parentWidget()->setWindowTitle(i18nc("@title:window", "Information"));
|
||||
qDeleteAll(findChildren<QWidget*>());
|
||||
qDeleteAll(findChildren<QLabel*>());
|
||||
qDeleteAll(findChildren<QFrame*>());
|
||||
}
|
||||
|
||||
int InfoPane::createHeader(const QString& title)
|
||||
|
|
Loading…
Reference in New Issue