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);
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);