QTfrontend/pages.h
changeset 728 033971bbe639
parent 718 f93a38d2c982
child 788 00720357601f
--- a/QTfrontend/pages.h	Sun Jan 20 14:40:36 2008 +0000
+++ b/QTfrontend/pages.h	Sun Jan 20 14:44:01 2008 +0000
@@ -59,26 +59,26 @@
   }
   virtual ~AbstractPage() {};
 
-  QPushButton* addButton(const char* btname, QGridLayout* grid, int wy, int wx) {
+  QPushButton* addButton(QString btname, QGridLayout* grid, int wy, int wx) {
     QPushButton* butt = new QPushButton(this);
     butt->setFont(*font14);
-    butt->setText(QPushButton::tr(btname));
+    butt->setText(btname);
     grid->addWidget(butt, wy, wx);
     return butt;
   };
 
-  QPushButton* addButton(const char* btname, QGridLayout* grid, int wy, int wx, int rowSpan, int columnSpan) {
+  QPushButton* addButton(QString btname, QGridLayout* grid, int wy, int wx, int rowSpan, int columnSpan) {
     QPushButton* butt = new QPushButton(this);
     butt->setFont(*font14);
-    butt->setText(QPushButton::tr(btname));
+    butt->setText(btname);
     grid->addWidget(butt, wy, wx, rowSpan, columnSpan);
     return butt;
   };
 
-  QPushButton* addButton(const char* btname, QBoxLayout* box, int where) {
+  QPushButton* addButton(QString btname, QBoxLayout* box, int where) {
     QPushButton* butt = new QPushButton(this);
     butt->setFont(*font14);
-    butt->setText(QPushButton::tr(btname));
+    butt->setText(btname);
     box->addWidget(butt, where);
     return butt;
   };