add "this" when create Qt obiect.
[mdictionary] / trunk / src / base / gui / AboutWidget.cpp
index d2edb32..c77d58b 100644 (file)
@@ -22,19 +22,19 @@ AboutWidget::AboutWidget(GUIInterface *parent): QDialog(parent)
                   QString("</p></font>");
 
     setWindowTitle(tr("About"));
-    mainLayout = new QVBoxLayout;
+    mainLayout = new QVBoxLayout(this);
 
     #ifndef Q_WS_MAEMO_5
-        scrollLayout = new QVBoxLayout;
-        scroll = new QScrollArea;
+        scrollLayout = new QVBoxLayout(this);
+        scroll = new QScrollArea(this);
         w = new QWidget(this);
 
     #endif
 
 
-    imageLabel = new QLabel;
-    mainLabel = new QLabel;
-    licenseLabel = new QLabel;
+    imageLabel = new QLabel(this);
+    mainLabel = new QLabel(this);
+    licenseLabel = new QLabel(this);
 
 
     QImage img(":/icons/logo/mdictionary.png");