本文整理汇总了C++中Theme类的典型用法代码示例。如果您正苦于以下问题:C++ Theme类的具体用法?C++ Theme怎么用?C++ Theme使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Theme类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: QWizard
OwncloudWizard::OwncloudWizard(QWidget *parent)
: QWizard(parent),
_configExists(false)
{
_setupPage = new OwncloudSetupPage;
_resultPage = new OwncloudWizardResultPage;
setPage(Page_oCSetup, _setupPage );
setPage(Page_Result, _resultPage );
// note: start Id is set by the calling class depending on if the
// welcome text is to be shown or not.
setWizardStyle( QWizard::ModernStyle );
connect( this, SIGNAL(currentIdChanged(int)), SLOT(slotCurrentPageChanged(int)));
connect( _setupPage, SIGNAL(connectToOCUrl(QString)), SIGNAL(connectToOCUrl(QString)));
Theme *theme = Theme::instance();
setWizardStyle(QWizard::ModernStyle);
setPixmap( QWizard::BannerPixmap, theme->wizardHeaderBanner() );
setPixmap( QWizard::LogoPixmap, theme->wizardHeaderLogo() );
setOption( QWizard::NoBackButtonOnStartPage );
setOption( QWizard::NoBackButtonOnLastPage );
setOption( QWizard::NoCancelButton );
setTitleFormat(Qt::RichText);
setSubTitleFormat(Qt::RichText);
}
开发者ID:Manoharsai,项目名称:mirall,代码行数:28,代码来源:owncloudwizard.cpp
示例2: setTitle
OwncloudWizardResultPage::OwncloudWizardResultPage()
{
_ui.setupUi(this);
// no fields to register.
Theme *theme = Theme::instance();
setTitle( tr("<font color=\"%1\" size=\"5\">Everything set up!</font>")
.arg(theme->wizardHeaderTitleColor().name()));
// required to show header in QWizard's modern style
setSubTitle( QLatin1String(" ") );
_ui.pbOpenLocal->setText("Open local folder");
_ui.pbOpenServer->setText(tr("Open %1").arg(Theme::instance()->appNameGUI()));
_ui.pbOpenLocal->setIcon(QIcon(":/mirall/resources/folder-sync.png"));
_ui.pbOpenLocal->setText(tr("Open Local Folder"));
_ui.pbOpenLocal->setIconSize(QSize(48, 48));
connect(_ui.pbOpenLocal, SIGNAL(clicked()), SLOT(slotOpenLocal()));
_ui.pbOpenLocal->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
QIcon appIcon = theme->applicationIcon();
_ui.pbOpenServer->setIcon(appIcon.pixmap(48));
_ui.pbOpenServer->setText(tr("Open %1").arg(theme->appNameGUI()));
_ui.pbOpenServer->setIconSize(QSize(48, 48));
_ui.pbOpenServer->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
connect(_ui.pbOpenServer, SIGNAL(clicked()), SLOT(slotOpenServer()));
setupCustomization();
}
开发者ID:Manoharsai,项目名称:mirall,代码行数:29,代码来源:owncloudwizard.cpp
示例3: setupCustomMedia
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();
}
}
开发者ID:Big-Data,项目名称:mirall,代码行数:27,代码来源:owncloudwizard.cpp
示例4: setupCustomMedia
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();
}
}
开发者ID:samaraCro,项目名称:mirall,代码行数:26,代码来源:owncloudwizard.cpp
示例5: AbstractCredentialsWizardPage
OwncloudOAuthCredsPage::OwncloudOAuthCredsPage()
: AbstractCredentialsWizardPage()
{
_ui.setupUi(this);
Theme *theme = Theme::instance();
_ui.topLabel->hide();
_ui.bottomLabel->hide();
QVariant variant = theme->customMedia(Theme::oCSetupTop);
WizardCommon::setupCustomMedia(variant, _ui.topLabel);
variant = theme->customMedia(Theme::oCSetupBottom);
WizardCommon::setupCustomMedia(variant, _ui.bottomLabel);
WizardCommon::initErrorLabel(_ui.errorLabel);
setTitle(WizardCommon::titleTemplate().arg(tr("Connect to %1").arg(Theme::instance()->appNameGUI())));
setSubTitle(WizardCommon::subTitleTemplate().arg(tr("Login in your browser")));
connect(_ui.openLinkButton, &QCommandLinkButton::clicked, [this] {
_ui.errorLabel->hide();
qobject_cast<OwncloudWizard *>(wizard())->account()->clearCookieJar(); // #6574
if (_asyncAuth)
_asyncAuth->openBrowser();
});
_ui.openLinkButton->setContextMenuPolicy(Qt::CustomContextMenu);
QObject::connect(_ui.openLinkButton, &QWidget::customContextMenuRequested, [this](const QPoint &pos) {
auto menu = new QMenu(_ui.openLinkButton);
menu->addAction(tr("Copy link to clipboard"), this, [this] {
if (_asyncAuth)
QApplication::clipboard()->setText(_asyncAuth->authorisationLink().toString(QUrl::FullyEncoded));
});
menu->setAttribute(Qt::WA_DeleteOnClose);
menu->popup(_ui.openLinkButton->mapToGlobal(pos));
});
}
开发者ID:bjoernv,项目名称:client,代码行数:35,代码来源:owncloudoauthcredspage.cpp
示例6: lua_Theme_getRefCount
static int lua_Theme_getRefCount(lua_State* state)
{
// Get the number of parameters.
int paramCount = lua_gettop(state);
// Attempt to match the parameters to a valid binding.
switch (paramCount)
{
case 1:
{
if ((lua_type(state, 1) == LUA_TUSERDATA))
{
Theme* instance = getInstance(state);
unsigned int result = instance->getRefCount();
// Push the return value onto the stack.
lua_pushunsigned(state, result);
return 1;
}
lua_pushstring(state, "lua_Theme_getRefCount - Failed to match the given parameters to a valid function signature.");
lua_error(state);
break;
}
default:
{
lua_pushstring(state, "Invalid number of parameters (expected 1).");
lua_error(state);
break;
}
}
return 0;
}
开发者ID:03050903,项目名称:GamePlay,代码行数:34,代码来源:lua_Theme.cpp
示例7: QWizardPage
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()));
}
开发者ID:MaxMillion,项目名称:mirall,代码行数:26,代码来源:owncloudsetuppage.cpp
示例8: lua_Theme_addRef
static int lua_Theme_addRef(lua_State* state)
{
// Get the number of parameters.
int paramCount = lua_gettop(state);
// Attempt to match the parameters to a valid binding.
switch (paramCount)
{
case 1:
{
if ((lua_type(state, 1) == LUA_TUSERDATA))
{
Theme* instance = getInstance(state);
instance->addRef();
return 0;
}
lua_pushstring(state, "lua_Theme_addRef - Failed to match the given parameters to a valid function signature.");
lua_error(state);
break;
}
default:
{
lua_pushstring(state, "Invalid number of parameters (expected 1).");
lua_error(state);
break;
}
}
return 0;
}
开发者ID:03050903,项目名称:GamePlay,代码行数:31,代码来源:lua_Theme.cpp
示例9: QWizardPage
OwncloudAdvancedSetupPage::OwncloudAdvancedSetupPage()
: QWizardPage(),
_ui(),
_checking(false),
_created(false),
_localFolderValid(false),
_progressIndi(new QProgressIndicator (this)),
_oldLocalFolder(),
_remoteFolder()
{
_ui.setupUi(this);
Theme *theme = Theme::instance();
setTitle(WizardCommon::titleTemplate().arg(tr("Connect to %1").arg(theme->appNameGUI())));
setSubTitle(WizardCommon::subTitleTemplate().arg(tr("Setup local folder options")));
registerField( QLatin1String("OCSyncFromScratch"), _ui.cbSyncFromScratch);
_ui.resultLayout->addWidget( _progressIndi );
stopSpinner();
setupCustomization();
connect( _ui.pbSelectLocalFolder, SIGNAL(clicked()), SLOT(slotSelectFolder()));
setButtonText(QWizard::NextButton, tr("Connect..."));
connect( _ui.rSyncEverything, SIGNAL(clicked()), SLOT(slotSyncEverythingClicked()));
connect( _ui.rSelectiveSync, SIGNAL(clicked()), SLOT(slotSelectiveSyncClicked()));
connect( _ui.bSelectiveSync, SIGNAL(clicked()), SLOT(slotSelectiveSyncClicked()));
QIcon appIcon = theme->applicationIcon();
_ui.lServerIcon->setText(QString());
_ui.lServerIcon->setPixmap(appIcon.pixmap(48));
_ui.lLocalIcon->setText(QString());
_ui.lLocalIcon->setPixmap(QPixmap(Theme::hidpiFileName(":/client/resources/folder-sync.png")));
}
开发者ID:rullzer,项目名称:client,代码行数:35,代码来源:owncloudadvancedsetuppage.cpp
示例10: QWizardPage
OwncloudWizardResultPage::OwncloudWizardResultPage()
: QWizardPage(),
_localFolder(),
_remoteFolder(),
_complete(false),
_ui()
{
_ui.setupUi(this);
// no fields to register.
setTitle(WizardCommon::subTitleTemplate().arg(tr("Everything set up!")));
// required to show header in QWizard's modern style
setSubTitle( QLatin1String(" ") );
_ui.pbOpenLocal->setText(tr("Open Local Folder"));
_ui.pbOpenLocal->setIcon(QIcon(QLatin1String(":/client/resources/folder-sync.png")));
_ui.pbOpenLocal->setIconSize(QSize(48, 48));
_ui.pbOpenLocal->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
connect(_ui.pbOpenLocal, SIGNAL(clicked()), SLOT(slotOpenLocal()));
Theme* theme = Theme::instance();
QIcon appIcon = theme->applicationIcon();
_ui.pbOpenServer->setText(tr("Open %1 in Browser").arg(theme->appNameGUI()));
_ui.pbOpenServer->setIcon(appIcon.pixmap(48));
_ui.pbOpenServer->setIconSize(QSize(48, 48));
_ui.pbOpenServer->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
connect(_ui.pbOpenServer, SIGNAL(clicked()), SLOT(slotOpenServer()));
setupCustomization();
}
开发者ID:ArthurChiao,项目名称:client,代码行数:29,代码来源:owncloudwizardresultpage.cpp
示例11: QObject
ApplicationUI::ApplicationUI(bb::cascades::Application *app)
: QObject(app)
{
ThemeSupport* themeSupport = app->themeSupport();
Theme* currentTheme = themeSupport->theme();
ColorTheme* colorTheme = currentTheme->colorTheme();
VisualStyle::Type style = colorTheme->style();
switch (style)
{
case VisualStyle::Bright:
m_theme = Bright;
break;
case VisualStyle::Dark:
m_theme = Dark;
break;
}
// create scene document from main.qml asset
// set parent to created document to ensure it exists for the whole application lifetime
QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
qml->setContextProperty("_native", this);
// create root object for the UI
AbstractPane *root = qml->createRootObject<AbstractPane>();
// set created root object as a scene
app->setScene(root);
}
开发者ID:knobtviker,项目名称:ThemeSetter,代码行数:26,代码来源:applicationui.cpp
示例12: QWizardPage
OwncloudAdvancedSetupPage::OwncloudAdvancedSetupPage()
: QWizardPage(),
_ui(),
_checking(false),
_created(false),
_configExists(false),
_multipleFoldersExist(false),
_progressIndi(new QProgressIndicator (this)),
_oldLocalFolder(),
_remoteFolder()
{
_ui.setupUi(this);
Theme *theme = Theme::instance();
setTitle(WizardCommon::titleTemplate().arg(tr("Connect to %1").arg(theme->appNameGUI())));
setSubTitle(WizardCommon::subTitleTemplate().arg(tr("Setup local folder options")));
registerField( QLatin1String("OCSyncFromScratch"), _ui.cbSyncFromScratch);
_ui.resultLayout->addWidget( _progressIndi );
stopSpinner();
setupCustomization();
connect( _ui.pbSelectLocalFolder, SIGNAL(clicked()), SLOT(slotSelectFolder()));
}
开发者ID:Arakmar,项目名称:mirall,代码行数:25,代码来源:owncloudadvancedsetuppage.cpp
示例13: qDeleteAll
void AppearanceSettings::loadThemes()
{
QStringList themeNames;
QStringList installPaths = Qtopia::installPaths();
qDeleteAll(m_themes);
m_themes.clear();
for (int i=0; i<installPaths.size(); i++) {
QString path(installPaths[i] + "etc/themes/");
QDir dir;
if (!dir.exists(path)) {
qLog(UI) << "Theme style configuration path not found" << path.toLocal8Bit().data();
continue;
}
// read theme.conf files
dir.setPath(path);
dir.setNameFilters(QStringList("*.conf")); // No tr
for (uint j=0; j<dir.count(); j++) {
QString name = dir[j].mid(0, dir[j].length() - 5); // cut ".conf"
Theme *theme = Theme::create(path + dir[j], name);
if (theme) {
m_themes << theme;
themeNames << theme->name();
}
}
}
themeNames << m_moreThemes;
QStringListModel *model;
model = qobject_cast<QStringListModel *>(m_themeCombo->model());
model->setStringList(themeNames);
}
开发者ID:Artox,项目名称:qtmoko,代码行数:33,代码来源:appearance.cpp
示例14: currentTheme
void AppearanceSettings::backgroundChanged(int index)
{
Theme *theme = currentTheme();
if (theme) {
theme->setCurrentBackgroundIndex(index);
QTimer::singleShot(0, this, SLOT(previewBackgroundChanges()));
}
}
开发者ID:Artox,项目名称:qtmoko,代码行数:8,代码来源:appearance.cpp
示例15: beginUpdate
void Frame::setTheme( Theme& t, const string prefix )
{
beginUpdate();
Widget::setTheme( t, prefix );
setCursor( t.getCursor( prefix+"frame" ) );
setFont( t.getFont( prefix+"frame" ) );
endUpdate();
}
开发者ID:chille,项目名称:GameUI,代码行数:8,代码来源:uiframe.cpp
示例16: setTheme
void Label::setTheme( Theme & t, const string prefix )
{
Widget::setTheme( t, prefix );
beginUpdate();
setBorder( t.getBorder( prefix+"label" ) );
setFont( t.getFont( prefix+"label" ) );
setFontColor( t.getColor( prefix+"label_font" ) );
endUpdate();
}
开发者ID:dcthe1,项目名称:GameUI,代码行数:9,代码来源:uilabel.cpp
示例17: setMultiTouch
void InputSample::initialize()
{
setMultiTouch(true);
// Load font
_font = Font::create("res/ui/arial.gpb");
assert(_font);
// Reuse part of the gamepad texture as the crosshair in this sample.
_crosshair = SpriteBatch::create("res/png/gamepad.png");
_crosshairDstRect.set(0, 0, 256, 256);
_crosshairSrcRect.set(256, 0, 256, 256);
_crosshairLowerLimit.set(-_crosshairSrcRect.width / 2.0f, -_crosshairSrcRect.height / 2.0f);
_crosshairUpperLimit.set((float)getWidth(), (float)getHeight());
_crosshairUpperLimit += _crosshairLowerLimit;
// Create input sample controls
_keyboardState = false;
_inputSampleControls = Form::create("res/common/inputs.form");
static_cast<Button*>(_inputSampleControls->getControl("showKeyboardButton"))->addListener(this, Listener::CLICK);
static_cast<Button*>(_inputSampleControls->getControl("captureMouseButton"))->addListener(this, Listener::CLICK);
if (!hasMouse())
{
static_cast<Button*>(_inputSampleControls->getControl("captureMouseButton"))->setVisible(false);
}
_inputSampleControls->getControl("restoreMouseLabel")->setVisible(false);
_mousePoint.set(-100, -100);
// Create a 3D form that responds to raw sensor inputs.
// For this, we will need a scene with a camera node.
Camera* camera = Camera::createPerspective(45.0f, (float)getWidth() / (float)getHeight(), 0.25f, 100.0f);
_scene = Scene::create();
Node* cameraNode = _scene->addNode("Camera");
cameraNode->setCamera(camera);
_scene->setActiveCamera(camera);
SAFE_RELEASE(camera);
_formNodeParent = _scene->addNode("FormParent");
_formNode = Node::create("Form");
_formNodeParent->addChild(_formNode);
Theme* theme = _inputSampleControls->getTheme();
Form* form = Form::create("testForm", theme->getStyle("basicContainer"), Layout::LAYOUT_ABSOLUTE);
form->setSize(225, 100);
Label* label = Label::create("sensorLabel", theme->getStyle("iconNoBorder"));
label->setPosition(25, 15);
label->setSize(175, 50);
label->setText("Raw sensor response (accel/gyro)");
form->addControl(label);
label->release();
_formNode->setScale(0.0015f, 0.0015f, 1.0f);
_formNodeRestPosition.set(0, 0, -1.5f);
_formNodeParent->setTranslation(_formNodeRestPosition);
_formNode->setTranslation(-0.2f, -0.2f, 0);
_formNode->setDrawable(form);
form->release();
}
开发者ID:ConfusedReality,项目名称:pkg_game-engine_gameplay,代码行数:57,代码来源:InputSample.cpp
示例18: loadGGEmoticonTheme
void EmoticonsManager::loadTheme()
{
Aliases.clear();
Selector.clear();
delete walker;
walker = 0;
Theme theme = ThemeManager->currentTheme();
if (theme.isValid())
loadGGEmoticonTheme(theme.path());
}
开发者ID:partition,项目名称:kadu,代码行数:11,代码来源:emoticons-manager.cpp
示例19: folderToModelItem
void AccountSettings::folderToModelItem( QStandardItem *item, Folder *f )
{
if( ! item || !f ) return;
item->setData( f->nativePath(), FolderStatusDelegate::FolderPathRole );
item->setData( f->remotePath(), FolderStatusDelegate::FolderSecondPathRole );
item->setData( f->alias(), FolderStatusDelegate::FolderAliasRole );
item->setData( f->syncEnabled(), FolderStatusDelegate::FolderSyncEnabled );
SyncResult res = f->syncResult();
SyncResult::Status status = res.status();
QStringList errorList = res.errorStrings();
Theme *theme = Theme::instance();
item->setData( theme->statusHeaderText( status ), Qt::ToolTipRole );
if( f->syncEnabled() ) {
if( status == SyncResult::SyncPrepare ) {
if( _wasDisabledBefore ) {
// if the folder was disabled before, set the sync icon
item->setData( theme->syncStateIcon( SyncResult::SyncRunning), FolderStatusDelegate::FolderStatusIconRole );
} // we keep the previous icon for the SyncPrepare state.
} else if( status == SyncResult::Undefined ) {
// startup, the sync was never done.
qDebug() << "XXX FIRST time sync, setting icon to sync running!";
item->setData( theme->syncStateIcon( SyncResult::SyncRunning), FolderStatusDelegate::FolderStatusIconRole );
} else {
// kepp the previous icon for the prepare phase.
if( status == SyncResult::Problem) {
item->setData( theme->syncStateIcon( SyncResult::Success), FolderStatusDelegate::FolderStatusIconRole );
} else {
item->setData( theme->syncStateIcon( status ), FolderStatusDelegate::FolderStatusIconRole );
}
}
} else {
item->setData( theme->folderDisabledIcon( ), FolderStatusDelegate::FolderStatusIconRole ); // size 48 before
_wasDisabledBefore = false;
}
item->setData( theme->statusHeaderText( status ), FolderStatusDelegate::FolderStatus );
if( errorList.isEmpty() ) {
if( (status == SyncResult::Error ||
status == SyncResult::SetupError ||
status == SyncResult::SyncAbortRequested ||
status == SyncResult::Unavailable)) {
errorList << theme->statusHeaderText(status);
}
}
item->setData( errorList, FolderStatusDelegate::FolderErrorMsg);
bool ongoing = false;
item->setData( QVariant(res.warnCount()), FolderStatusDelegate::WarningCount );
if( status == SyncResult::SyncRunning ) {
ongoing = true;
}
item->setData( ongoing, FolderStatusDelegate::SyncRunning);
}
开发者ID:VincentvgNn,项目名称:mirall,代码行数:59,代码来源:accountsettings.cpp
示例20: QWizard
OwncloudWizard::OwncloudWizard(QWidget *parent)
: QWizard(parent)
, _account(0)
, _setupPage(new OwncloudSetupPage(this))
, _httpCredsPage(new OwncloudHttpCredsPage(this))
, _browserCredsPage(new OwncloudOAuthCredsPage)
#ifndef NO_SHIBBOLETH
, _shibbolethCredsPage(new OwncloudShibbolethCredsPage)
#endif
, _advancedSetupPage(new OwncloudAdvancedSetupPage)
, _resultPage(new OwncloudWizardResultPage)
, _credentialsPage(0)
, _setupLog()
{
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setPage(WizardCommon::Page_ServerSetup, _setupPage);
setPage(WizardCommon::Page_HttpCreds, _httpCredsPage);
setPage(WizardCommon::Page_OAuthCreds, _browserCredsPage);
#ifndef NO_SHIBBOLETH
setPage(WizardCommon::Page_ShibbolethCreds, _shibbolethCredsPage);
#endif
setPage(WizardCommon::Page_AdvancedSetup, _advancedSetupPage);
setPage(WizardCommon::Page_Result, _resultPage);
connect(this, &QDialog::finished, this, &OwncloudWizard::basicSetupFinished);
// note: start Id is set by the calling class depending on if the
// welcome text is to be shown or not.
setWizardStyle(QWizard::ModernStyle);
connect(this, &QWizard::currentIdChanged, this, &OwncloudWizard::slotCurrentPageChanged);
connect(_setupPage, &OwncloudSetupPage::determineAuthType, this, &OwncloudWizard::determineAuthType);
connect(_httpCredsPage, &OwncloudHttpCredsPage::connectToOCUrl, this, &OwncloudWizard::connectToOCUrl);
connect(_browserCredsPage, &OwncloudOAuthCredsPage::connectToOCUrl, this, &OwncloudWizard::connectToOCUrl);
#ifndef NO_SHIBBOLETH
connect(_shibbolethCredsPage, &OwncloudShibbolethCredsPage::connectToOCUrl, this, &OwncloudWizard::connectToOCUrl);
#endif
connect(_advancedSetupPage, &OwncloudAdvancedSetupPage::createLocalAndRemoteFolders,
this, &OwncloudWizard::createLocalAndRemoteFolders);
connect(this, &QWizard::customButtonClicked, this, &OwncloudWizard::skipFolderConfiguration);
Theme *theme = Theme::instance();
setWindowTitle(tr("%1 Connection Wizard").arg(theme->appNameGUI()));
setWizardStyle(QWizard::ModernStyle);
setPixmap(QWizard::BannerPixmap, theme->wizardHeaderBanner());
setPixmap(QWizard::LogoPixmap, theme->wizardHeaderLogo());
setOption(QWizard::NoBackButtonOnStartPage);
setOption(QWizard::NoBackButtonOnLastPage);
setOption(QWizard::NoCancelButton);
setTitleFormat(Qt::RichText);
setSubTitleFormat(Qt::RichText);
setButtonText(QWizard::CustomButton1, tr("Skip folders configuration"));
}
开发者ID:msphn,项目名称:client,代码行数:54,代码来源:owncloudwizard.cpp
注:本文中的Theme类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论