mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-31 16:12:33 +02:00
2025-04-28 Fred Gleason <fredg@paravelsystems.com>
* Modified validator for new scheduler codes to use 'QRegularExpressionValidator' in the 'Add Scheduler Code' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
4e58265b35
commit
d166a188c9
@ -25048,3 +25048,7 @@
|
||||
'DISTRO SPECIFIC NOTES' section of 'INSTALL'.
|
||||
2025-04-28 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Cleaned up numerous 'no such signal' runtime errors.
|
||||
2025-04-28 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Modified validator for new scheduler codes to use
|
||||
'QRegularExpressionValidator' in the 'Add Scheduler Code' dialog
|
||||
in rdadmin(1).
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
//#include <QRegExpValidator>
|
||||
#include <QRegularExpressionValidator>
|
||||
|
||||
#include <rddb.h>
|
||||
#include <rdescape_string.h>
|
||||
@ -45,11 +45,12 @@ AddSchedCode::AddSchedCode(QWidget *parent)
|
||||
//
|
||||
d_code_edit=new QLineEdit(this);
|
||||
d_code_edit->setMaxLength(10);
|
||||
/*
|
||||
QRegExpValidator *code_validator=
|
||||
new QRegExpValidator(QRegExp("[a-z0-9 ]{1,10}",Qt::CaseInsensitive),this);
|
||||
QRegularExpressionValidator *code_validator=
|
||||
new QRegularExpressionValidator(QRegularExpression("[-_a-z0-9 ]{1,10}",
|
||||
QRegularExpression::CaseInsensitiveOption),this);
|
||||
// new QRegularExpressionValidator(QRegularExpression("[a-z0-9 ]{1,10}",
|
||||
// QRegularExpression::CaseInsensitiveOption),this);
|
||||
d_code_edit->setValidator(code_validator);
|
||||
*/
|
||||
connect(d_code_edit,SIGNAL(textChanged(const QString &)),
|
||||
this,SLOT(codeChangedData(const QString &)));
|
||||
d_code_label=new QLabel(tr("New Code:"),this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user