Merge branch 'cache' of ssh://drop.maemo.org/git/mdictionary into cache
[mdictionary] / trunk / src / base / gui / SettingsWidget.cpp
index 72f0b20..77a239b 100644 (file)
@@ -31,13 +31,13 @@ SettingsWidget::SettingsWidget(GUIInterface *parent) :
 
     setWindowTitle(tr("Settings"));
 
-    verticalLayout = new QVBoxLayout;
+    verticalLayout = new QVBoxLayout(this);
     setLayout(verticalLayout);
 
-    historySizeSpinBox = new QSpinBox;
-    searchResultSizeSpinBox = new QSpinBox;
+    historySizeSpinBox = new QSpinBox(this);
+    searchResultSizeSpinBox = new QSpinBox(this);
 
-    spinBoxesFormLayout = new QFormLayout;
+    spinBoxesFormLayout = new QFormLayout(this);
 
     spinBoxesFormLayout->addRow(tr("Search result size"),
                                 searchResultSizeSpinBox);
@@ -54,10 +54,10 @@ SettingsWidget::SettingsWidget(GUIInterface *parent) :
     verticalLayout->addLayout(spinBoxesFormLayout);
 
 
-    checkBoxesLabel = new QLabel(tr("Search in:"));
+    checkBoxesLabel = new QLabel(tr("Search in:"),this);
 
-    searchInBookmarksCheckBox = new QCheckBox(tr("Bookmarks"));
-    searchInDictionariesCheckBox = new QCheckBox(tr("Dictionaries"));
+    searchInBookmarksCheckBox = new QCheckBox(tr("Bookmarks"),this);
+    searchInDictionariesCheckBox = new QCheckBox(tr("Dictionaries"),this);
 
     verticalLayout->addSpacing(20);
     verticalLayout->addWidget(checkBoxesLabel);