2016-05-24 Fred Gleason <fredg@paravelsystems.com>

* Removed all CVS tags.
	* Removed 'const char *name' parameter from all QObject contructors.
This commit is contained in:
Fred Gleason
2016-05-24 13:13:26 -04:00
parent db9da6dc62
commit 698b475933
1059 changed files with 4795 additions and 7935 deletions

View File

@@ -4,8 +4,6 @@
//
// Stefan Gabriel <stg@st-gabriel.de>
//
//
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
@@ -39,9 +37,8 @@
#include <edit_schedcodes.h>
#include <add_schedcodes.h>
AddSchedCode::AddSchedCode(QString *schedCode,QWidget *parent,const char *name)
: QDialog(parent,name,true)
AddSchedCode::AddSchedCode(QString *schedCode,QWidget *parent)
: QDialog(parent,"",true)
{
schedCode_schedCode=schedCode;
@@ -72,12 +69,11 @@ AddSchedCode::AddSchedCode(QString *schedCode,QWidget *parent,const char *name)
//
// Code Name
//
schedCode_name_edit=new QLineEdit(this,"schedCode_name_edit");
schedCode_name_edit=new QLineEdit(this);
schedCode_name_edit->setGeometry(105,11,sizeHint().width()-150,19);
schedCode_name_edit->setMaxLength(10);
schedCode_name_edit->setValidator(validator);
QLabel *label=new QLabel(schedCode_name_edit,tr("&New Code:"),
this,"schedCode_name_label");
QLabel *label=new QLabel(schedCode_name_edit,tr("&New Code:"),this);
label->setGeometry(10,11,90,19);
label->setFont(font);
label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
@@ -85,7 +81,7 @@ AddSchedCode::AddSchedCode(QString *schedCode,QWidget *parent,const char *name)
//
// Ok Button
//
QPushButton *ok_button=new QPushButton(this,"ok_button");
QPushButton *ok_button=new QPushButton(this);
ok_button->setGeometry(sizeHint().width()-180,sizeHint().height()-60,80,50);
ok_button->setDefault(true);
ok_button->setFont(font);
@@ -95,9 +91,9 @@ AddSchedCode::AddSchedCode(QString *schedCode,QWidget *parent,const char *name)
//
// Cancel Button
//
QPushButton *cancel_button=new QPushButton(this,"cancel_button");
cancel_button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,
80,50);
QPushButton *cancel_button=new QPushButton(this);
cancel_button->
setGeometry(sizeHint().width()-90,sizeHint().height()-60,80,50);
cancel_button->setFont(font);
cancel_button->setText(tr("&Cancel"));
connect(cancel_button,SIGNAL(clicked()),this,SLOT(cancelData()));
@@ -144,7 +140,8 @@ void AddSchedCode::okData()
}
delete q;
EditSchedCode *schedCode=new EditSchedCode(schedCode_name_edit->text(),"", this,"group");
EditSchedCode *schedCode=
new EditSchedCode(schedCode_name_edit->text(),"",this);
if(schedCode->exec()<0) {
delete schedCode;
done(-1);