예제 #1
0
void Manager::authorizationRequested(){
    QString username = _negotiator.getFromStream("username");
    QString password =_negotiator.getFromStream("password");
    QString organisation = _negotiator.getFromStream("organisation");
    if(_rest.requestLogin(username, password, organisation))
        if(_staffModel.populate(_rest.requestDataRefresh())){
            finishSetup();
            emit genericSignal(true, "login");
        }
    emit genericSignal(false, "login");
}
예제 #2
0
void RowController::valueChanged(int row, int col)
{
  if(row == _row && (col == 4 || col == 6 || col == 8))
    finishSetup();
}