void OwncloudSetupPage::setupCustomization() { // set defaults for the customize labels. _ui.sideLabel->setText( QString::null ); _ui.sideLabel->setFixedWidth(160); _ui.topLabel->hide(); _ui.bottomLabel->hide(); Theme *theme = Theme::instance(); QVariant variant = theme->customMedia( Theme::oCSetupTop ); setupCustomMedia( variant, _ui.topLabel ); variant = theme->customMedia( Theme::oCSetupSide ); setupCustomMedia( variant, _ui.sideLabel ); variant = theme->customMedia( Theme::oCSetupBottom ); setupCustomMedia( variant, _ui.bottomLabel ); QString fixUrl = theme->overrideServerUrl(); if( !fixUrl.isEmpty() ) { setOCUrl( fixUrl ); _ui.leUrl->setEnabled( false ); _ui.cbSecureConnect->hide(); _ui.leUrl->hide(); _ui.protocolLabel->hide(); _ui.serverAddressLabel->hide(); } }
void OwncloudSetupPage::setupCustomization() { // set defaults for the customize labels. _ui.sideLabel->setText( QString::null ); _ui.sideLabel->setFixedWidth(160); _ui.topLabel->hide(); _ui.bottomLabel->hide(); MirallConfigFile cfg; QVariant variant = cfg.customMedia( MirallConfigFile::oCSetupTop ); setupCustomMedia( variant, _ui.topLabel ); variant = cfg.customMedia( MirallConfigFile::oCSetupSide ); setupCustomMedia( variant, _ui.sideLabel ); variant = cfg.customMedia( MirallConfigFile::oCSetupBottom ); setupCustomMedia( variant, _ui.bottomLabel ); QString fixUrl = cfg.customMedia( MirallConfigFile::oCSetupFixUrl ).toString(); if( !fixUrl.isEmpty() ) { setOCUrl( fixUrl ); _ui.leUrl->setEnabled( false ); _ui.cbSecureConnect->hide(); _ui.leUrl->hide(); _ui.protocolLabel->hide(); _ui.serverAddressLabel->hide(); } }
void OwncloudSetupPage::setupCustomization() { // set defaults for the customize labels. // _ui.topLabel->hide(); _ui.bottomLabel->hide(); Theme *theme = Theme::instance(); QVariant variant = theme->customMedia( Theme::oCSetupTop ); if( variant.isNull() ) { _ui.topLabel->setOpenExternalLinks(true); _ui.topLabel->setText("If you don't have an ownCloud server yet, see <a href=\"https://owncloud.com\">owncloud.com</a> for more info."); } else { setupCustomMedia( variant, _ui.topLabel ); } variant = theme->customMedia( Theme::oCSetupBottom ); setupCustomMedia( variant, _ui.bottomLabel ); QString fixUrl = theme->overrideServerUrl(); if( !fixUrl.isEmpty() ) { setServerUrl( fixUrl ); _ui.leUrl->setEnabled( false ); _ui.leUrl->hide(); } }
void OwncloudWizardResultPage::setupCustomization() { // set defaults for the customize labels. _ui.topLabel->setText( QString::null ); _ui.topLabel->hide(); QVariant variant = Theme::instance()->customMedia( Theme::oCSetupResultTop ); setupCustomMedia( variant, _ui.topLabel ); }
void OwncloudWizardResultPage::setupCustomization() { // set defaults for the customize labels. _ui.topLabel->setText( QString::null ); _ui.topLabel->hide(); MirallConfigFile cfg; QVariant variant = cfg.customMedia( MirallConfigFile::oCSetupResultTop ); setupCustomMedia( variant, _ui.topLabel ); }
void OwncloudSetupPage::setupCustomization() { // set defaults for the customize labels. _ui.topLabel->hide(); _ui.bottomLabel->hide(); Theme *theme = Theme::instance(); QVariant variant = theme->customMedia( Theme::oCSetupTop ); if( !variant.isNull() ) { setupCustomMedia( variant, _ui.topLabel ); } variant = theme->customMedia( Theme::oCSetupBottom ); setupCustomMedia( variant, _ui.bottomLabel ); QString fixUrl = theme->overrideServerUrl(); if( !fixUrl.isEmpty() ) { _ui.label_2->hide(); setServerUrl( fixUrl ); _ui.leUrl->setEnabled( false ); _ui.leUrl->hide(); } }