Merge branch 'master' into google
[mdictionary] / trunk / src / base / gui / SettingsWidget.cpp
index 854d5c3..15e3e40 100644 (file)
@@ -31,16 +31,16 @@ SettingsWidget::SettingsWidget(GUIInterface *parent) :
 
     setWindowTitle(tr("Settings"));
 
-    verticalLayout = new QVBoxLayout(this);
+    verticalLayout = new QVBoxLayout;
     setLayout(verticalLayout);
 
-    historySizeSpinBox = new QSpinBox(this);
-    searchResultSizeSpinBox = new QSpinBox(this);
+    historySizeSpinBox = new QSpinBox;
+    searchResultSizeSpinBox = new QSpinBox;
     limitTip = "Limit maximal number of finded words, affect only when "
                 "searching in file.";
     searchResultSizeSpinBox->setToolTip(limitTip);
 
-    spinBoxesFormLayout = new QFormLayout(this);
+    spinBoxesFormLayout = new QFormLayout;
 
     spinBoxesFormLayout->addRow(tr("Search result size"),
                                 searchResultSizeSpinBox);
@@ -83,7 +83,7 @@ SettingsWidget::SettingsWidget(GUIInterface *parent) :
     #ifndef Q_WS_MAEMO_5
         setMinimumWidth(250);
         setMaximumWidth(250);
-        footerLayout = new QHBoxLayout(this);
+        footerLayout = new QHBoxLayout;
         closeButton = new QPushButton(tr("Save"));
         footerLayout->addStretch(0);
         footerLayout->addWidget(closeButton);