connect(ui.hostName, SIGNAL(textChanged(QString)), this, SLOT(hostEditChanged(QString)));
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(hostSelected()));
connect(ui.hostName, SIGNAL(textChanged(QString)), this, SLOT(hostEditChanged(QString)));
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(hostSelected()));
ui.hostName->show(); ui.hostPort->show(); ui.hostLabel->show(); ui.portLabel->show();
ui.statusText->setText(tr("Connect to Quassel Core running on:"));
ui.buttonBox->button(QDialogButtonBox::Ok)->show();
ui.hostName->setEnabled(true); ui.hostPort->setEnabled(true);
ui.hostName->show(); ui.hostPort->show(); ui.hostLabel->show(); ui.portLabel->show();
ui.statusText->setText(tr("Connect to Quassel Core running on:"));
ui.buttonBox->button(QDialogButtonBox::Ok)->show();
ui.hostName->setEnabled(true); ui.hostPort->setEnabled(true);
}
void CoreConnectDlg::hostEditChanged(QString txt) {
ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(txt.length());
}
}
void CoreConnectDlg::hostEditChanged(QString txt) {
ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(txt.length());
}
ui.hostName->hide(); ui.hostPort->hide(); ui.hostLabel->hide(); ui.portLabel->hide();
ui.statusText->setText(tr("Connecting to %1:%2" ).arg(ui.hostName->text()).arg(ui.hostPort->value()));
ui.buttonBox->button(QDialogButtonBox::Ok)->hide();
connect(ClientProxy::instance(), SIGNAL(coreConnected()), this, SLOT(coreConnected()));
connect(ClientProxy::instance(), SIGNAL(coreConnectionError(QString)), this, SLOT(coreConnectionError(QString)));
Client::instance()->connectToCore(ui.hostName->text(), ui.hostPort->value());
ui.hostName->hide(); ui.hostPort->hide(); ui.hostLabel->hide(); ui.portLabel->hide();
ui.statusText->setText(tr("Connecting to %1:%2" ).arg(ui.hostName->text()).arg(ui.hostPort->value()));
ui.buttonBox->button(QDialogButtonBox::Ok)->hide();
connect(ClientProxy::instance(), SIGNAL(coreConnected()), this, SLOT(coreConnected()));
connect(ClientProxy::instance(), SIGNAL(coreConnectionError(QString)), this, SLOT(coreConnectionError(QString)));
Client::instance()->connectToCore(ui.hostName->text(), ui.hostPort->value());
ui.hostLabel->hide(); ui.hostName->hide(); ui.portLabel->hide(); ui.hostPort->hide();
ui.statusText->setText(tr("Synchronizing..."));
QSettings s;
ui.hostLabel->hide(); ui.hostName->hide(); ui.portLabel->hide(); ui.hostPort->hide();
ui.statusText->setText(tr("Synchronizing..."));
QSettings s;