add stardict plugin translations
[mdictionary] / src / plugins / stardict / StarDialog.cpp
index 6f18d02..c3b6131 100644 (file)
@@ -63,15 +63,18 @@ void StarDialog::initializeUI() {
 
     infoLabel = new QLabel;
     infoLabel->setWordWrap(true);
+    QVBoxLayout* buttonLayout = new QVBoxLayout;
 
     if(type == New) {
         setWindowTitle(tr("Add new StarDict dictionary"));
 
         browseLayout = new QHBoxLayout;
         browseButton = new QPushButton(tr("Browse"));
+        browseButton->setMaximumWidth(150);
         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);
@@ -97,7 +100,7 @@ void StarDialog::initializeUI() {
     accentsLayout = new QHBoxLayout;
     accentsCheckBox = new QCheckBox(tr("Strip accents"));
     accentsCheckBox->setToolTip(accentsToolTip);
-    accentsLayout->addWidget(accentsCheckBox); 
+    accentsLayout->addWidget(accentsCheckBox);
     #ifdef Q_WS_MAEMO_5
         accentsInfoToolButton = new QToolButton;
         accentsInfoToolButton->setIcon(QIcon::fromTheme("general_information"));