当前位置: 首页>>代码示例>>C++>>正文


C++ setSubTitle函数代码示例

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


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


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