OwncloudSetupPage::OwncloudSetupPage() : QWizardPage(), _ui(), _oCUrl(), _ocUser(), _authTypeKnown(false), _checking(false), _authType(WizardCommon::HttpCreds), _progressIndi(new QProgressIndicator (this)) { _ui.setupUi(this); Theme *theme = Theme::instance(); setTitle(WizardCommon::titleTemplate().arg(tr("Connect to %1").arg(theme->appNameGUI()))); setSubTitle(WizardCommon::subTitleTemplate().arg(tr("Setup %1 server").arg(theme->appNameGUI()))); registerField( QLatin1String("OCUrl*"), _ui.leUrl ); _ui.resultLayout->addWidget( _progressIndi ); stopSpinner(); setupCustomization(); connect(_ui.leUrl, SIGNAL(textChanged(QString)), SLOT(slotUrlChanged(QString))); connect(_ui.leUrl, SIGNAL(editingFinished()), SLOT(slotUrlEditFinished())); }
OwncloudSetupPage::OwncloudSetupPage(QWidget *parent) : QWizardPage(), _ui(), _oCUrl(), _ocUser(), _authTypeKnown(false), _checking(false), _authType(WizardCommon::HttpCreds), _progressIndi(new QProgressIndicator (this)) { _ui.setupUi(this); Theme *theme = Theme::instance(); setTitle(WizardCommon::titleTemplate().arg(tr("Connect to %1").arg(theme->appNameGUI()))); setSubTitle(WizardCommon::subTitleTemplate().arg(tr("Setup %1 server").arg(theme->appNameGUI()))); if (!theme->overrideServerUrl().isEmpty()) { _ui.leUrl->setEnabled(false); } registerField( QLatin1String("OCUrl*"), _ui.leUrl ); _ui.resultLayout->addWidget( _progressIndi ); stopSpinner(); setupCustomization(); slotUrlChanged(QLatin1String("")); // don't jitter UI connect(_ui.leUrl, SIGNAL(textChanged(QString)), SLOT(slotUrlChanged(QString))); connect(_ui.leUrl, SIGNAL(editingFinished()), SLOT(slotUrlEditFinished())); addCertDial = new AddCertificateDialog(this); _ocWizard = qobject_cast<OwncloudWizard *>(parent); connect(_ocWizard,SIGNAL(needCertificate()),this,SLOT(slotAskSSLClientCertificate())); }