void MiningDialog::setModel(ClientModel *model) { if(model) { connect(ui->btnRefresh, SIGNAL(clicked()), this, SLOT(refreshClicked())); connect(ui->btnExit, SIGNAL(clicked()), this, SLOT(exitClicked())); connect(ui->btnRegister, SIGNAL(clicked()), this, SLOT(registerClicked())); connect(ui->btnUnregister, SIGNAL(clicked()), this, SLOT(unregisterClicked())); MiningDialog::refreshClicked(); } }
void CLogInPage::setConnections() { QObject::connect( m_pRegister, SIGNAL( registerClicked() ), this, SIGNAL( registerRequest() ) ); QObject::connect( m_pRegisterModeButton, SIGNAL( clicked() ), this, SLOT( registerClicled() ) ); QObject::connect( m_pLogin, SIGNAL( loginClicked() ), this, SIGNAL( loginRequest() ) ); }