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

@@ -2,9 +2,7 @@
//
// Add a Rivendell Replicator Configuration
//
// (C) Copyright 2010 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: add_replicator.cpp,v 1.2.8.1 2013/07/05 22:44:17 cvs Exp $
// (C) Copyright 2010,2016 Fred Gleason <fredg@paravelsystems.com>
//
// 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
@@ -38,9 +36,8 @@
#include <rdpasswd.h>
#include <rdtextvalidator.h>
AddReplicator::AddReplicator(QString *rname,QWidget *parent,const char *name)
: QDialog(parent,name,true)
AddReplicator::AddReplicator(QString *rname,QWidget *parent)
: QDialog(parent,"",true)
{
repl_name=rname;
@@ -70,12 +67,11 @@ AddReplicator::AddReplicator(QString *rname,QWidget *parent,const char *name)
//
// Replicator Name
//
repl_name_edit=new QLineEdit(this,"repl_name_edit");
repl_name_edit=new QLineEdit(this);
repl_name_edit->setGeometry(145,11,sizeHint().width()-150,19);
repl_name_edit->setMaxLength(10);
repl_name_edit->setValidator(validator);
QLabel *label=new QLabel(repl_name_edit,tr("&New Replicator Name:"),
this,"repl_name_label");
QLabel *label=new QLabel(repl_name_edit,tr("&New Replicator Name:"),this);
label->setGeometry(10,11,130,19);
label->setFont(font);
label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
@@ -83,7 +79,7 @@ AddReplicator::AddReplicator(QString *rname,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);
@@ -93,9 +89,9 @@ AddReplicator::AddReplicator(QString *rname,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()));
@@ -141,7 +137,7 @@ void AddReplicator::okData()
}
delete q;
EditReplicator *replicator=new EditReplicator(repl_name_edit->text(),this,"replicator");
EditReplicator *replicator=new EditReplicator(repl_name_edit->text(),this);
if(replicator->exec()<0) {
sql=QString().sprintf("delete from REPLICATORS where NAME=\"%s\"",
(const char *)repl_name_edit->text());