mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 23:25:57 +01:00
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:
@@ -2,9 +2,7 @@
|
||||
//
|
||||
// Add a Rivendell Service
|
||||
//
|
||||
// (C) Copyright 2002 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: add_clock.cpp,v 1.13.8.1 2012/04/23 17:22:47 cvs Exp $
|
||||
// (C) Copyright 2002,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
|
||||
@@ -37,9 +35,8 @@
|
||||
#include <rdpasswd.h>
|
||||
#include <rdtextvalidator.h>
|
||||
|
||||
|
||||
AddClock::AddClock(QString *logname,QWidget *parent,const char *name)
|
||||
: QDialog(parent,name,true)
|
||||
AddClock::AddClock(QString *logname,QWidget *parent)
|
||||
: QDialog(parent,"",true)
|
||||
{
|
||||
clock_name=logname;
|
||||
|
||||
@@ -97,12 +94,12 @@ AddClock::AddClock(QString *logname,QWidget *parent,const char *name)
|
||||
//
|
||||
// Clock Name
|
||||
//
|
||||
clock_name_edit=new QLineEdit(this,"clock_name_edit");
|
||||
clock_name_edit=new QLineEdit(this);
|
||||
clock_name_edit->setGeometry(145,11,sizeHint().width()-155,19);
|
||||
clock_name_edit->setMaxLength(58); // MySQL limitation!
|
||||
clock_name_edit->setValidator(validator);
|
||||
QLabel *clock_name_label=new QLabel(clock_name_edit,tr("&New Clock Name:"),
|
||||
this,"clock_name_label");
|
||||
QLabel *clock_name_label=
|
||||
new QLabel(clock_name_edit,tr("&New Clock Name:"),this);
|
||||
clock_name_label->setGeometry(10,11,130,19);
|
||||
clock_name_label->setFont(font);
|
||||
clock_name_label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
|
||||
@@ -110,7 +107,7 @@ AddClock::AddClock(QString *logname,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);
|
||||
@@ -120,7 +117,7 @@ AddClock::AddClock(QString *logname,QWidget *parent,const char *name)
|
||||
//
|
||||
// Cancel Button
|
||||
//
|
||||
QPushButton *cancel_button=new QPushButton(this,"cancel_button");
|
||||
QPushButton *cancel_button=new QPushButton(this);
|
||||
cancel_button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,
|
||||
80,50);
|
||||
cancel_button->setFont(font);
|
||||
|
||||
Reference in New Issue
Block a user