QTfrontend/mapContainer.cpp
changeset 4699 47d8a524780a
parent 4566 87ee1be17d27
child 4701 7ed88cfc99b1
--- a/QTfrontend/mapContainer.cpp	Sun Dec 26 20:17:15 2010 +0300
+++ b/QTfrontend/mapContainer.cpp	Sun Dec 26 19:25:40 2010 +0100
@@ -224,7 +224,7 @@
     QGridLayout* seedLayout = new QGridLayout(seedWidget);
     seedLayout->setMargin(0);
 
-    QLabel* seedLabel = new QLabel(tr("Seed"), seedWidget);
+    seedLabel = new QLabel(tr("Seed"), seedWidget);
     seedLayout->addWidget(seedLabel, 3, 0);
     seedEdit = new QLineEdit(seedWidget);
     seedEdit->setMaxLength(54);
@@ -232,11 +232,14 @@
     seedLayout->addWidget(seedEdit, 3, 1);
     seedLayout->setColumnStretch(1, 5);
     seedSet = new QPushButton(seedWidget);
-    seedSet->setText(QPushButton::tr("Set"));
+    seedSet->setText(QPushButton::tr("more"));
     connect(seedSet, SIGNAL(clicked()), this, SLOT(seedEdited()));
     seedLayout->setColumnStretch(2, 1);
     seedLayout->addWidget(seedSet, 3, 2);
 
+    seedLabel->setVisible(false);
+    seedEdit->setVisible(false);
+
     setRandomSeed();
     setRandomTheme();
 }
@@ -561,6 +564,14 @@
 
 void HWMapContainer::seedEdited()
 {
+    if (seedLabel->isVisible() == false )
+    {
+        seedLabel->setVisible(true);
+        seedEdit->setVisible(true);
+        seedSet->setText(tr("Set"));
+        return;
+    }
+
     if (seedEdit->text().isEmpty())
         seedEdit->setText(m_seed);
     else