diff options
author | Tim Jenssen <tim.jenssen@digia.com> | 2013-06-18 11:21:28 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@digia.com> | 2013-06-18 12:54:10 +0200 |
commit | 52a115400ae64a7e129d34f554f9d334dbe1f526 (patch) | |
tree | 4510552865a5ea04b5db0cc04f9e5e395a1e0d28 /src/libs/installer/component.cpp | |
parent | 305af595f0f1dd583296bb4a1c0d64481c6c079f (diff) |
fix designer warning
- MessageBoxHandler::currentBestSuitParent() is a QWizard in most cases
and then it tries to add QWidgets to it, but it allows only QWizardPage
- this results in a memory leak of the translatewatch objects inside the
loader, but needs to be fixed in the QUiLoader see QTBUG-31818
Change-Id: I67b0cc78c3843d4bbe70f015a63b5c26bb7f9e2c
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/libs/installer/component.cpp')
-rw-r--r-- | src/libs/installer/component.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp index ffc4ea904..705fb6d3c 100644 --- a/src/libs/installer/component.cpp +++ b/src/libs/installer/component.cpp @@ -554,7 +554,7 @@ void Component::loadUserInterfaces(const QDir &directory, const QStringList &uis static QUiLoader loader; loader.setTranslationEnabled(true); loader.setLanguageChangeEnabled(true); - QWidget *const widget = loader.load(&file, MessageBoxHandler::currentBestSuitParent()); + QWidget *const widget = loader.load(&file, 0); if (!widget) { throw Error(tr("Could not load the requested UI file '%1'. Error: %2").arg(it.fileName(), #if QT_VERSION < 0x050000 |