void OSCLoginWindow::createActions() { //about item action connect(ui->actionAbout,SIGNAL(triggered()), this,SLOT(onAboutMacOSCAction())); //login button action connect(ui->loginButton,SIGNAL(clicked()), this,SLOT(onLoginMacOSCAction())); //network signal and slot connect(manager,SIGNAL(finished(QNetworkReply*)), this,SLOT(onLoginRequestResult(QNetworkReply*))); //return connect(ui->loginname,SIGNAL(returnPressed()), this,SLOT(onLoginMacOSCAction())); connect(ui->password,SIGNAL(returnPressed()), this,SLOT(onLoginMacOSCAction())); //text changed connect(ui->loginname,SIGNAL(textChanged(QString)), this,SLOT(onClearText())); connect(ui->password,SIGNAL(textChanged(QString)), this,SLOT(onClearText())); }
void MonitorItem::connectToMainWindow(QObject* mainWindow) { connect(this, SIGNAL(showStatusbarMessage(QString)), mainWindow, SLOT(onShowStatusbarMessage(QString))); connect(this, SIGNAL(appendText(QString,QString)), mainWindow, SLOT(onAppendText(QString,QString))); connect(this, SIGNAL(clearText(QString)), mainWindow, SLOT(onClearText(QString))); connect(this, SIGNAL(statusChanged(QString,int)), mainWindow, SLOT(onStatusChanged(QString,int))); if (d->type == R_CLIENT) { connect(this, SIGNAL(jobIsRunning(bool)), mainWindow, SLOT(onFdJobIsRunning(bool))); }