Beispiel #1
0
ChangePasswd::ChangePasswd(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ChangePasswd)
{
    ui->setupUi(this);
    connect(ui->change,SIGNAL(clicked()),
            this,SLOT(changePasswd()));
    connect(ui->cancel,SIGNAL(clicked()),
            this,SLOT(close()));
}
Beispiel #2
0
void Dialog::slotInitPass()
{
    if(ui->ln_passwd->text()!="" && ui->ln_passwd->text().length()>6)
    {
        QString key=ui->ln_passwd->text();
        Blowfish_Init (ctx, &key, key.length());
        encrypt=true;
        qDebug()<<"Шифрование включенно";
    }
    else
        encrypt=false;
    emit changePasswd(ctx,&encrypt);
    qDebug()<<"Изменения пароля"<<encrypt;
}
void GuiPreferences::addEvents(void)
{
  connect(m_cancelBtn, SIGNAL(clicked()), this, SLOT(handleCancel()));

  switch(m_formType) {
  case ChangeMonitoringSettings:
    QObject::connect(m_applySettingBtn, SIGNAL(clicked()),  this, SLOT(applyChanges()));
    connect(m_addAsSourceBtn, SIGNAL(clicked()), this, SLOT(addAsSource()));
    connect(m_deleteSourceBtn, SIGNAL(clicked()), this, SLOT(deleteSource()));
    connect(m_showAuthInfoChkbx, SIGNAL(stateChanged(int)), this, SLOT(setAuthChainVisibility(int)));
    break;
  case ChangePassword:
    connect(m_changePwdBtn, SIGNAL(clicked()),  this, SLOT(changePasswd()));
    break;
  case ShowAbout:
    break;
  case BasicLoginForm:
    break;
  default:
    break;
  }
}