widget->setLayout(mainVerticalLayout);
infoLabel = new QLabel;
infoLabel->setWordWrap(true);
+ QVBoxLayout* buttonLayout = new QVBoxLayout;
if(type == New) {
browseLayout = new QHBoxLayout;
browseButton = new QPushButton(tr("Browse"));
-
+ browseButton->setMaximumWidth(150);
+ infoLabel->setText(tr("Dictionary file: not selected"));
setWindowTitle(tr("Add new StarDict dictionary"));
infoLabel->setText(tr("Dictionary file: not selected"));
browseLayout->addWidget(infoLabel, 0, Qt::AlignLeft);
+ browseLayout->addLayout(buttonLayout);
browseLayout->addWidget(browseButton, 0, Qt::AlignRight);
mainVerticalLayout->addLayout(browseLayout);
}