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