few mini-adjustments
authorsheepluva
Wed, 26 Oct 2011 01:51:42 +0200
changeset 6212 a5d95f32e17f
parent 6211 ee9465c0ea82
child 6213 c0f2e0915e57
few mini-adjustments
QTfrontend/ui/page/pageeditteam.cpp
QTfrontend/ui/widget/FreqSpinBox.h
QTfrontend/util/namegen.cpp
--- a/QTfrontend/ui/page/pageeditteam.cpp	Wed Oct 26 01:50:08 2011 +0200
+++ b/QTfrontend/ui/page/pageeditteam.cpp	Wed Oct 26 01:51:42 2011 +0200
@@ -80,7 +80,7 @@
         btnRandomHogName[i] = addButton(":/res/dice.png", GBHLayout, i, 3, 1, 1, true);
     }
 
-    btnRandomTeam = addButton(QPushButton::tr("Random Team"), GBHLayout, 9, 1);
+    btnRandomTeam = addButton(QPushButton::tr("Random Team"), GBHLayout, 9, 0);
 
     vbox1->addWidget(GBoxHedgehogs);
 
--- a/QTfrontend/ui/widget/FreqSpinBox.h	Wed Oct 26 01:50:08 2011 +0200
+++ b/QTfrontend/ui/widget/FreqSpinBox.h	Wed Oct 26 01:51:42 2011 +0200
@@ -55,4 +55,4 @@
 };
 
 
-#endif // FREQSPINBOX_H
+#endif // HEDGEWARS_FREQSPINBOX_H
--- a/QTfrontend/util/namegen.cpp	Wed Oct 26 01:50:08 2011 +0200
+++ b/QTfrontend/util/namegen.cpp	Wed Oct 26 01:51:42 2011 +0200
@@ -247,7 +247,7 @@
                          "Graphics/Graves",
                          QDir::Files,
                          QStringList("*.png")
-                     ).replaceInStrings(QRegExp("^(.*)\\.png"), "\\1")
+                     ).replaceInStrings(QRegExp("\\.png$"), "")
                  );
 
     if(Graves.size()==0)
@@ -269,7 +269,7 @@
                         "Forts",
                         QDir::Files,
                         QStringList("*L.png")
-                    ).replaceInStrings(QRegExp("^(.*)L\\.png"), "\\1")
+                    ).replaceInStrings(QRegExp("L\\.png$"), "")
                 );
 
     if(Forts.size()==0)