AddUserDialog::AddUserDialog( QWidget* parent ) : QDialog( parent ), ui( new Ui::AddUserDialog ) { ui->setupUi( this ); dataChanged = false; // Connect signals and slots connect( ui->buttonCancel, SIGNAL( clicked() ) , this, SLOT( close() ) ); connect( ui->buttonCreate, SIGNAL( clicked() ) , this, SLOT( buttonCreate_clicked() ) ); connect( ui->textBoxPassword, SIGNAL( textChanged( QString ) ) , this, SLOT( textbox_textChanged() ) ); connect( ui->textBoxUsername, SIGNAL( textChanged( QString ) ) , this, SLOT( textbox_textChanged() ) ); connect( ui->textBoxVerifiedPassword, SIGNAL( textChanged( QString ) ) , this, SLOT( textbox_textChanged() ) ); }
ChangePasswordDialog::ChangePasswordDialog( QWidget* parent ) : QDialog( parent ), ui( new Ui::ChangePasswordDialog ) { ui->setupUi( this ); // Connect signals and slots connect( ui->buttonCancel, SIGNAL( clicked() ) , this, SLOT( close() ) ); connect( ui->buttonApply, SIGNAL( clicked() ) , this, SLOT( buttonApply_clicked() ) ); connect( ui->textBoxPassword, SIGNAL( textChanged( QString ) ) , this, SLOT( textbox_textChanged() ) ); connect( ui->textBoxVerifiedPassword, SIGNAL( textChanged( QString ) ) , this, SLOT( textbox_textChanged() ) ); }