# HG changeset patch # User koda # Date 1293387940 -3600 # Node ID 47d8a524780a7b4e5f7e3cdf018445520b32f8b4 # Parent c27bea52efac58f18bf98dc84e062d18a920d242 hide seed... diff -r c27bea52efac -r 47d8a524780a QTfrontend/mapContainer.cpp --- 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 diff -r c27bea52efac -r 47d8a524780a QTfrontend/mapContainer.h --- a/QTfrontend/mapContainer.h Sun Dec 26 20:17:15 2010 +0300 +++ b/QTfrontend/mapContainer.h Sun Dec 26 19:25:40 2010 +0100 @@ -104,6 +104,7 @@ QString m_seed; QLineEdit* seedEdit; QPushButton* seedSet; + QLabel* seedLabel; int hhLimit; int templateFilter; QPixmap hhSmall;