• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ setSubTitle函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中setSubTitle函数的典型用法代码示例。如果您正苦于以下问题:C++ setSubTitle函数的具体用法?C++ setSubTitle怎么用?C++ setSubTitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了setSubTitle函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: ConnectionPageWizardPage

DataImporterImportPage::DataImporterImportPage(DbUiManager *uiManager, QWidget *parent) :
    ConnectionPageWizardPage(uiManager, parent), queryScheduler(0), workerThread(0)
{
    setTitle(tr("Importing..."));
    setSubTitle(tr("Data import is in progress"));
    setFinalPage(true);

    QHBoxLayout *mainLayout = new QHBoxLayout();

    QVBoxLayout *centerLayout = new QVBoxLayout();

    statusLabel = new QLabel(tr("Starting..."));
    centerLayout->addWidget(statusLabel);

    stopButton = new QPushButton(IconUtil::getIcon("stop"), tr("Stop"));
    centerLayout->addWidget(stopButton);
    stopButton->setVisible(false);

    mainLayout->addLayout(centerLayout);
    mainLayout->setAlignment(centerLayout, Qt::AlignCenter);
    setLayout(mainLayout);

    setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);

    connect(stopButton, SIGNAL(clicked()), this, SLOT(stopButtonPressed()));
}
开发者ID:rovshan-b,项目名称:oraexp,代码行数:26,代码来源:dataimporterimportpage.cpp


示例2: QWizardPage

//BEGIN ExportOutputPage
ExportOutputPage::ExportOutputPage(QWidget *parent)
: QWizardPage(parent)
{
  setTitle(i18nc("@title Wizard page title", "Output Target"));
  setSubTitle(i18nc("@title Wizard page subtitle", "Select the output target."));

  QVBoxLayout *layout = new QVBoxLayout();

  documentRadioButton = new QRadioButton(i18nc("@option:radio Output target", "Current document"), this);
  clipboardRadioButton = new QRadioButton(i18nc("@option:radio Output target", "Clipboard"), this);
  fileRadioButton = new QRadioButton(i18nc("@option:radio Output target", "File"), this);

  QHBoxLayout *fileLayout = new QHBoxLayout();
  fileLayout->setContentsMargins(20, 0, 0, 0);

  fileUrl = new KUrlRequester(this);
  fileUrl->setMode(KFile::File);
  fileUrl->setFilter(i18n("*.csv|Comma Separated Values\n*|All files"));

  fileLayout->addWidget(fileUrl);

  layout->addWidget(documentRadioButton);
  layout->addWidget(clipboardRadioButton);
  layout->addWidget(fileRadioButton);
  layout->addLayout(fileLayout);

  setLayout(layout);

  registerField(QLatin1String("outDocument"), documentRadioButton);
  registerField(QLatin1String("outClipboard"), clipboardRadioButton);
  registerField(QLatin1String("outFile"), fileRadioButton);
  registerField(QLatin1String("outFileUrl"), fileUrl, "text");

  connect(fileRadioButton, SIGNAL(toggled(bool)), fileUrl, SLOT(setEnabled(bool)));
}
开发者ID:KDE,项目名称:kate,代码行数:36,代码来源:exportwizard.cpp


示例3: d

CloneWizardPage::CloneWizardPage(QWidget *parent) :
    VCSBase::BaseCheckoutWizardPage(parent),
    d(new CloneWizardPagePrivate)
{
    setSubTitle(tr("Specify repository URL, checkout directory and path."));
    setRepositoryLabel(tr("Clone URL:"));
}
开发者ID:asokolov,项目名称:ananas-creator,代码行数:7,代码来源:clonewizardpage.cpp


示例4: View

// UnitColorView
//---------------------------------------------------------------------------
UnitColorView::UnitColorView() : View()
{
    setSearchName("UnitColorView");
    setTitle("Selects Your Unit Color");
    setSubTitle("");

    setAllowResize(false);
    setAllowMove(false);
    setVisible(false);

    Surface unitSurface;

    moveTo(400, 200);

    packedBody.load("units/pics/pak/TitaHNSD.pak");
    packedBody.setFPS(12);

    packedTurret.load("units/pics/pak/TitaTNSD.pak");
    packedTurret.setFPS(8);

    grassSurface.loadBMP("pics/grass.bmp");

    fuckingSurface.create(packedTurret.getWidth(), packedTurret.getHeight(), 1);
    fuckingSurface.fill(0);

    resizeClientArea(packedTurret.getWidth(), packedTurret.getHeight());

    int size = packedTurret.getWidth() / 2;
    addButtonCenterText(iXY(0, 0), size, "Up", "", bIncreaseBrightness);
    addButtonCenterText(iXY(size, 0), size, "Down", "", bDecreaseBrightness);

    setGrayColorTable();
    rebuildGrayColorTable();

} // end UnitColorView::UnitColorView
开发者ID:BackupTheBerlios,项目名称:netpanzer-svn,代码行数:37,代码来源:UnitColorView.cpp


示例5: SpecialButtonView

// AreYouSureExitView
//---------------------------------------------------------------------------
AreYouSureExitView::AreYouSureExitView() : SpecialButtonView()
{
    setSearchName("AreYouSureExitView");
    setTitle("Exit netPanzer");
    setSubTitle("");

} // end AreYouSureExitView::AreYouSureExitView
开发者ID:BackupTheBerlios,项目名称:netpanzer-svn,代码行数:9,代码来源:AreYouSureExitView.cpp


示例6: setWindowTitle

void icdCommunicationPage::retranslateUi()
{
    setWindowTitle(QApplication::translate("icdCommunicationPage", "WizardPage", 0, QApplication::UnicodeUTF8));
    setTitle(QApplication::translate("icdCommunicationPage", "ICD Communication Setting", 0, QApplication::UnicodeUTF8));
    setSubTitle(QApplication::translate("icdCommunicationPage", "This page can set the attributes of communication segment, if needed.", 0, QApplication::UnicodeUTF8));
    communicationGroupBox->setTitle(QApplication::translate("icdCommunicationPage", "Communication", 0, QApplication::UnicodeUTF8));
    subNetworkGroupBox->setTitle(QApplication::translate("icdCommunicationPage", "SubNetwork", 0, QApplication::UnicodeUTF8));
    subNetworkTypeLabel->setText(QApplication::translate("icdCommunicationPage", "type", 0, QApplication::UnicodeUTF8));
    subNetworkDescCheckBox->setText(QString());
    subNetworkTypeCheckBox->setText(QString());
    subNetworkDescLabel->setText(QApplication::translate("icdCommunicationPage", "desc", 0, QApplication::UnicodeUTF8));
    bitRateGroupBox->setTitle(QApplication::translate("icdCommunicationPage", "BitRate", 0, QApplication::UnicodeUTF8));
    bitRateComboBox->clear();
    bitRateComboBox->insertItems(0, QStringList()
     << QApplication::translate("icdCommunicationPage", "10", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("icdCommunicationPage", "100", 0, QApplication::UnicodeUTF8)
     << QApplication::translate("icdCommunicationPage", "1000", 0, QApplication::UnicodeUTF8)
    );
    bitRateLabel->setText(QApplication::translate("icdCommunicationPage", "Setting BitRate of this subNetwork:", 0, QApplication::UnicodeUTF8));
    bitRateUnitLabel->setText(QApplication::translate("icdCommunicationPage", "(unit : Mb/s)", 0, QApplication::UnicodeUTF8));
    connectedAPGroupBox->setTitle(QApplication::translate("icdCommunicationPage", "ConnectedAP", 0, QApplication::UnicodeUTF8));
    connectedIedNameLabel->setText(QApplication::translate("icdCommunicationPage", "iedName", 0, QApplication::UnicodeUTF8));
    connectedApNameLabel->setText(QApplication::translate("icdCommunicationPage", "apName", 0, QApplication::UnicodeUTF8));
    addressGroupBox->setTitle(QApplication::translate("icdCommunicationPage", "Address", 0, QApplication::UnicodeUTF8));
    ipAddressLabel->setText(tr("IP"));
    ipSubMaskLabel->setText(tr("Mask"));
    ipGateLabel->setText(tr("Gate"));
    subNetworkNamelabel->setText(QApplication::translate("icdCommunicationPage", "name", 0, QApplication::UnicodeUTF8));
    subNetworkNameText->setText(tr("LAN1"));

}
开发者ID:superliujian,项目名称:ICD_Creator,代码行数:31,代码来源:icdcommunicationpage.cpp


示例7: setTitle

CheckoutWizardPage::CheckoutWizardPage(QWidget *parent) :
    VCSBase::BaseCheckoutWizardPage(parent)
{
    setTitle(tr("Location"));
    setSubTitle(tr("Specify repository URL, checkout directory and path."));
    setRepositoryLabel(tr("Repository:"));
}
开发者ID:TheProjecter,项目名称:project-qtcreator,代码行数:7,代码来源:checkoutwizardpage.cpp


示例8: 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


示例9: QWizardPage

OutputFilesPage::OutputFilesPage(QWidget *parent)
    : QWizardPage(parent)
{
    setTitle(tr("Output Files"));
    setSubTitle(tr("Specify where you want the wizard to put the generated "
                   "skeleton code."));
    setPixmap(QWizard::LogoPixmap, QPixmap(":/images/logo3.png"));

    outputDirLabel = new QLabel(tr("&Output directory:"));
    outputDirLineEdit = new QLineEdit;
    outputDirLabel->setBuddy(outputDirLineEdit);

    headerLabel = new QLabel(tr("&Header file name:"));
    headerLineEdit = new QLineEdit;
    headerLabel->setBuddy(headerLineEdit);

    implementationLabel = new QLabel(tr("&Implementation file name:"));
    implementationLineEdit = new QLineEdit;
    implementationLabel->setBuddy(implementationLineEdit);

    registerField("outputDir*", outputDirLineEdit);
    registerField("header*", headerLineEdit);
    registerField("implementation*", implementationLineEdit);

    QGridLayout *layout = new QGridLayout;
    layout->addWidget(outputDirLabel, 0, 0);
    layout->addWidget(outputDirLineEdit, 0, 1);
    layout->addWidget(headerLabel, 1, 0);
    layout->addWidget(headerLineEdit, 1, 1);
    layout->addWidget(implementationLabel, 2, 0);
    layout->addWidget(implementationLineEdit, 2, 1);
    setLayout(layout);
}
开发者ID:bailsoftware,项目名称:qt-embedded,代码行数:33,代码来源:classwizard.cpp


示例10: QWizardPage

ModelNamePage::ModelNamePage(QWidget *parent) :
QWizardPage(parent)
{
    setTitle("Enter model class information");
    setSubTitle("The header and source file names will be derived from the class name");
    ui.setupUi(this);
}
开发者ID:yinyunqiao,项目名称:qtcreator,代码行数:7,代码来源:modelnamepage.cpp


示例11: 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


示例12: View

// UnitSelectionView
//---------------------------------------------------------------------------
UnitSelectionView::UnitSelectionView() : View()
{
	setSearchName("UnitSelectionView");
	setTitle("Selects Your Units");
	setSubTitle("");

	setAllowResize(false);
	setAllowMove(false);
	setDisplayStatusBar(true);
	setVisible(false);

	moveTo(bodyTextRect.min);

	resize(bodyTextRect.getSize());

	//setScrollBar(true);

	maxYOffset =  0;

	// Define the scrollBar fot this view.
	scrollBar = new ScrollBar(HORIZONTAL, 0, 1, 0, 100);

	add(scrollBar);

} // end UnitSelectionView::UnitSelectionView
开发者ID:BackupTheBerlios,项目名称:netpanzer-svn,代码行数:27,代码来源:UnitSelectionView.cpp


示例13: 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(":/mirall/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:MaxMillion,项目名称:mirall,代码行数:29,代码来源:owncloudwizardresultpage.cpp


示例14: QWizardPage

NewWizardPage4::NewWizardPage4(QWidget* parent)
   : QWizardPage(parent)
      {
      setFinalPage(true);
      setTitle(tr("Create New Score"));
      setSubTitle(tr("Choose template file:"));
      setAccessibleName(title());
      setAccessibleDescription(subTitle());

      templateFileBrowser = new ScoreBrowser;
      templateFileBrowser->setStripNumbers(true);
      templateFileBrowser->setShowCustomCategory(true);
      templateFileBrowser->setSizePolicy(QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored));
      buildTemplatesList();

      QVBoxLayout* layout = new QVBoxLayout;
      QHBoxLayout* searchLayout = new QHBoxLayout;
      QLineEdit* search = new QLineEdit;
      search->setPlaceholderText(tr("Search"));
      search->setClearButtonEnabled(true);
      search->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
      searchLayout->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::MinimumExpanding, QSizePolicy::Maximum));
      searchLayout->addWidget(search);

      layout->addLayout(searchLayout);
      layout->addWidget(templateFileBrowser);
      setLayout(layout);

      connect(templateFileBrowser, SIGNAL(scoreSelected(const QString&)), SLOT(templateChanged(const QString&)));
      connect(templateFileBrowser, SIGNAL(scoreActivated(const QString&)), SLOT(fileAccepted(const QString&)));
      connect(search, &QLineEdit::textChanged, [this] (const QString& searchString) {
            this->templateFileBrowser->filter(searchString);
            });
      }
开发者ID:salewski,项目名称:MuseScore,代码行数:34,代码来源:newwizard.cpp


示例15: QWizardPage

Page1DW::Page1DW(QWidget *parent) : QWizardPage(parent)
{
    setupUi(this);
    setTitle("DW Analysis");
    setSubTitle("Please fill information about the data source and specification. "
                "Also, please choose an imaging model.");
    bValueEdit->setValidator(new QIntValidator(0, 10000, this));

    connect(DataSourceEdit,SIGNAL(textChanged(QString)),this,SLOT(onDataSourceEditChange(QString)));
    connect(DataSourceButton,SIGNAL(clicked()),this,SLOT(onDataSourceButtonPress()));
    connect(gTableListBox,SIGNAL(currentIndexChanged(int)),this,SLOT(ongTableListBoxChange(int)));
    connect(EditTableButton,SIGNAL(clicked()),this,SLOT(onEditTableButtonPress()));
    connect(ModelBox,SIGNAL(currentIndexChanged(int)),this,SLOT(onModelBoxChange(int)));
    connect(SaveFolderButton,SIGNAL(clicked()),this,SLOT(onSaveFolderButtonPress()));

    registerField("page1dw.dataType",DataTypeBox);
    registerField("page1dw.dataSource*",DataSourceEdit);
    registerField("page1dw.gTable",gTableListBox);
    registerField("page1dw.bValue*",bValueEdit);
    registerField("page1dw.nGradients",nGradientsEdit);
    registerField("page1dw.nB0",nb0ImagesEdit);
    registerField("page1dw.imagingModel",ModelBox);
    registerField("page1dw.computeMetricsDTI",ComputeDTIMetricsCheck);
    registerField("page1dw.computeMetricsTDF",ComputeTDFMetricsCheck);
    registerField("page1dw.saveMetricFormat",MetricFormatBox);
    registerField("page1dw.saveFolder*",SaveFolderEdit);

    // scan current folder for gtbl files
    // read all gradient tables, add their file names to the box
    gTableList = new QList<mat>();
    QStringList *namesList = new QStringList();
    if (readGradientTablesFile(gTableList,namesList))
        gTableListBox->addItems(*namesList);
}
开发者ID:johnsonjonaris,项目名称:CoNECt,代码行数:34,代码来源:dw_wizardpages.cpp


示例16: 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 ownCloud server")));

    registerField( QLatin1String("OCUrl*"), _ui.leUrl );

    _ui.resultLayout->addWidget( _progressIndi );
    stopSpinner();

    setupCustomization();

    connect(_ui.leUrl, SIGNAL(textChanged(QString)), SLOT(slotUrlChanged(QString)));
}
开发者ID:Arakmar,项目名称:mirall,代码行数:25,代码来源:owncloudsetuppage.cpp


示例17: setTitle

void BtBookshelfTaskPage::retranslateUi() {
    setTitle(QApplication::translate("BookshelfWizard",
                                     "Bookshelf Manager"));
    setSubTitle(QApplication::translate("BookshelfWizard",
                                        "Install, update, or remove works on your bookshelf."));
    m_warningLabel->setText(
            QApplication::translate(
                    "BookshelfWizard",
                    "<html><head/><body><p><span style=\" font-weight:600;\">"
                    "WARNING</span>: Installing or updating works uses the "
                    "internet. If you live in a persecuted country you may not "
                    "want to do this.</p></body></html>"));
    m_groupBox->setTitle(QApplication::translate("BookshelfWizard",
                                                 "Bookshelf task"));
    m_installRadioButton->setText(
            QApplication::translate(
                    "BookshelfWizard",
                    "Install additional works (uses internet)"));
    m_updateRadioButton->setText(
            QApplication::translate("BookshelfWizard",
                                    "Update installed works (uses internet)"));
    m_removeRadioButton->setText(
            QApplication::translate("BookshelfWizard",
                                    "Remove installed works"));
}
开发者ID:bibletime,项目名称:bibletime,代码行数:25,代码来源:btbookshelftaskpage.cpp


示例18: 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


示例19: View

// GameTemplateView
//---------------------------------------------------------------------------
GameTemplateView::GameTemplateView() : View()
{
	setSearchName("GameTemplateView");
	setTitle("Game Template");
	setSubTitle("");

} // end GameTemplateView::GameTemplateView
开发者ID:BackupTheBerlios,项目名称:netpanzer-svn,代码行数:9,代码来源:GameTemplateView.cpp


示例20: setTitle

FirstRunHolidayAppInfo::FirstRunHolidayAppInfo(QWidget *parent)
    :QWizardPage(parent)
{
    setTitle(tr("Basic Information"));
    setSubTitle(tr("Please enter some basic information about your holiday apartment."));

    label_app_name=new QLabel(tr("Name of the holiday apartment:"));
    label_app_street=new QLabel(tr("Street"));
    label_app_place=new QLabel(tr("City"));
    label_app_zip=new QLabel(tr("ZIP"));
    edit_app_name=new QLineEdit();
    edit_app_street=new QLineEdit();
    edit_app_place=new QLineEdit();
    edit_app_zip=new QLineEdit();

    QGridLayout * gridlayout=new QGridLayout();
    gridlayout->addWidget(label_app_name,0,0);
    gridlayout->addWidget(edit_app_name,0,1);
    gridlayout->addWidget(label_app_street,1,0);
    gridlayout->addWidget(edit_app_street,1,1);
    gridlayout->addWidget(label_app_place,2,0);
    gridlayout->addWidget(edit_app_place,2,1);
    gridlayout->addWidget(label_app_zip,3,0);
    gridlayout->addWidget(edit_app_zip,3,1);

    registerField("app_name",edit_app_name);
    registerField("app_street",edit_app_street);
    registerField("app_place",edit_app_place);
    registerField("app_zip",edit_app_zip);

    setLayout(gridlayout);
}
开发者ID:stefanbretzel,项目名称:FeWo,代码行数:32,代码来源:firstrunwizard.cpp



注:本文中的setSubTitle函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ setSubtype函数代码示例发布时间:2022-05-30
下一篇:
C++ setStyleSheet函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap