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


C++ KPageWidgetItem::setHeader方法代码示例

本文整理汇总了C++中KPageWidgetItem::setHeader方法的典型用法代码示例。如果您正苦于以下问题:C++ KPageWidgetItem::setHeader方法的具体用法?C++ KPageWidgetItem::setHeader怎么用?C++ KPageWidgetItem::setHeader使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在KPageWidgetItem的用法示例。


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

示例1: KPageDialog

//----
ResourceAppointmentsSettingsDialog::ResourceAppointmentsSettingsDialog( ViewBase *view, ResourceAppointmentsItemModel *model, QWidget *parent )
    : KPageDialog( parent ),
    m_view( view )
{
    ResourceAppointmentsDisplayOptionsPanel *panel = new ResourceAppointmentsDisplayOptionsPanel( model );
    KPageWidgetItem *page = addPage( panel, i18n( "General" ) );
    page->setHeader( i18n( "Resource Assignments View Settings" ) );

    QTabWidget *tab = new QTabWidget();

    QWidget *w = ViewBase::createPageLayoutWidget( view );
    tab->addTab( w, w->windowTitle() );
    m_pagelayout = w->findChild<KoPageLayoutWidget*>();
    Q_ASSERT( m_pagelayout );

    m_headerfooter = ViewBase::createHeaderFooterWidget( view );
    m_headerfooter->setOptions( view->printingOptions() );
    tab->addTab( m_headerfooter, m_headerfooter->windowTitle() );

    page = addPage( tab, i18n( "Printing" ) );
    page->setHeader( i18n( "Printing Options" ) );

    connect( this, SIGNAL(accepted()), this, SLOT(slotOk()));
    connect( this, SIGNAL(accepted()), panel, SLOT(slotOk()));
    //TODO: there was no default button configured, should there?
//     connect( button(QDialogButtonBox::RestoreDefaults), SIGNAL(clicked(bool)), panel, SLOT(setDefault()));
}
开发者ID:UIKit0,项目名称:calligra,代码行数:28,代码来源:kptresourceappointmentsview.cpp

示例2: setupPages

// void AssocPropDlg::setupPages (UMLObject * c)
void AssocPropDlg::setupPages (AssociationWidget *assocWidget)
{
    UMLDoc* umlDoc = UMLApp::app()->document();

    // general page
    QFrame *page = new QFrame();
    KPageWidgetItem *pageItem = new KPageWidgetItem( page, i18nc("general settings", "General"));
    pageItem->setHeader( i18n("General Settings") );
    pageItem->setIcon( Icon_Utils::DesktopIcon(Icon_Utils::it_Properties_General) );
    addPage( pageItem );
    QHBoxLayout *genLayout = new QHBoxLayout(page);
    page->setMinimumSize(310, 330);
    m_pGenPage = new AssocGenPage (umlDoc, page, assocWidget);
    genLayout->addWidget(m_pGenPage);

    // role page
    QFrame *newPage = new QFrame();
    pageItem = new KPageWidgetItem( newPage, i18n("Roles"));
    pageItem->setHeader( i18n("Role Settings"));
    pageItem->setIcon( Icon_Utils::DesktopIcon(Icon_Utils::it_Properties_Roles) );
    addPage( pageItem );
    QHBoxLayout * roleLayout = new QHBoxLayout(newPage);
    // newPage->setMinimumSize(310, 330);
    m_pRolePage = new AssocRolePage(umlDoc, newPage, assocWidget);
    roleLayout->addWidget(m_pRolePage);

    setupFontPage();
}
开发者ID:Elv13,项目名称:Umbrello-ng,代码行数:29,代码来源:assocpropdlg.cpp

示例3: KVBox

/**
 * Class constructor.
 * @param	nPage	The initial page to show
 * @param	pParent	The parent widget
 * @param	szName	The widget's name
 */
PreferencesDlg::PreferencesDlg(uint nPage, QWidget* pParent, 
	const char* szName) :
	KPageDialog(pParent),
	m_lDlgPageItems(QList<KPageWidgetItem*>())
{
	KVBox* pFrame;
	KPageWidgetItem *item;

	// Setup KPageDialog sub-widget
	setFaceType(KPageDialog::List);
	setCaption(i18n("Preferences"));
	setButtons(KDialog::Default | KDialog::Ok | KDialog::Apply | KDialog::Cancel);
	setDefaultButton(KDialog::Ok);
	setObjectName(szName);
	QDialog::setModal(false);

	// Create and add the "Frontend" page
	pFrame = new KVBox();
	item = addPage(pFrame, i18n("Programs"));
	item->setHeader(i18n("Paths to back-end programmes"));
	item->setIcon(KIcon("preferences-desktop-default-applications", KIconLoader::global()));
	m_lDlgPageItems << item;
	m_pPrefFrontend = new PrefFrontend(pFrame);

	// Create and add the "Colours" page
	pFrame = new KVBox();
	item = addPage(pFrame, i18n("Colours"));
	item->setHeader(i18n("Window colours"));
	item->setIcon(KIcon("preferences-desktop-color", KIconLoader::global()));
	m_lDlgPageItems << item;
	m_pPrefColor = new PrefColor(pFrame);

	// Create and add the "Fonts" page
	pFrame = new KVBox();
	item = addPage(pFrame, i18n("Fonts"));
	item->setHeader(i18n("Window fonts"));
	item->setIcon(KIcon("preferences-desktop-font", KIconLoader::global()));
	m_lDlgPageItems << item;
	m_pPrefFont = new PrefFont(pFrame);

	// Create and add the "Options" page
	pFrame = new KVBox();
	item = addPage(pFrame, i18n("Options"));
	item->setHeader(i18n("Misc. Options"));
	item->setIcon(KIcon("configure", KIconLoader::global()));
	m_lDlgPageItems << item;
	m_pPrefOpt = new PrefOpt(pFrame);

	// Make sure the "Apply" button is initially disabled
	enableButtonApply(false);

	// Enable the "Apply" button when a parameter changes its value
	connect(m_pPrefFrontend, SIGNAL(modified()), this, SLOT(slotModified()));
	connect(m_pPrefColor, SIGNAL(modified()), this, SLOT(slotModified()));
	connect(m_pPrefFont, SIGNAL(modified()), this, SLOT(slotModified()));
	connect(m_pPrefOpt, SIGNAL(modified()), this, SLOT(slotModified()));

	// Show the ( new ) current page
	setCurrentPage(m_lDlgPageItems[nPage]);
}
开发者ID:AlexanderStein,项目名称:kscope4,代码行数:66,代码来源:preferencesdlg.cpp

示例4: KPageDialog

KWConfigureDialog::KWConfigureDialog(KWView* parent)
: KPageDialog(parent)
{
    setFaceType(List);
    setCaption(i18n("Configure"));
    setButtons(KDialog::Ok | KDialog::Apply | KDialog::Cancel | KDialog::Default);
    setDefaultButton(KDialog::Ok);

    m_miscPage = new KoConfigMiscPage(parent->koDocument(), parent->canvasBase()->shapeController()->resourceManager());
    KPageWidgetItem *item = addPage(m_miscPage, i18n("Misc"));
    item->setHeader(i18n("Misc"));
    item->setIcon(koIcon("preferences-other"));

    m_gridPage = new KoConfigGridPage(parent->koDocument());
    item = addPage(m_gridPage, i18n("Grid"));
    item->setHeader(i18n("Grid"));
    item->setIcon(koIcon("grid"));

    connect(m_miscPage, SIGNAL(unitChanged(KoUnit)), m_gridPage, SLOT(slotUnitChanged(KoUnit)));

    m_docPage = new KoConfigDocumentPage(parent->koDocument());
    item = addPage(m_docPage, i18nc("@title:tab Document settings page", "Document"));
    item->setHeader(i18n("Document Settings"));
    item->setIcon(koIcon("document-properties"));

    m_authorPage = new KoConfigAuthorPage();
    item = addPage(m_authorPage, i18nc("@title:tab Author page", "Author"));
    item->setHeader(i18n("Author"));
    item->setIcon(koIcon("user-identity"));

    connect(this, SIGNAL(okClicked()), this, SLOT(slotApply()));
    connect(this, SIGNAL(defaultClicked()), this, SLOT(slotDefault()));
    connect(this, SIGNAL(applyClicked()), this, SLOT(slotApply()) );
    connect(this, SIGNAL(changed()), parent, SLOT(slotUpdateAuthorProfileActions()));
}
开发者ID:,项目名称:,代码行数:35,代码来源:

示例5: KPageDialog

KomparePrefDlg::KomparePrefDlg( ViewSettings* viewSets, DiffSettings* diffSets ) : KPageDialog( 0 )
{
	setFaceType( KPageDialog::List );
	setWindowTitle( i18n( "Preferences" ) );
	setButtons( Help|Default|Ok|Apply|Cancel );
	setDefaultButton( Ok );
	setModal( true );
	showButtonSeparator( true );

	// ok i need some stuff in that pref dlg...
	//setIconListAllVisible(true);

	m_viewPage = new ViewPage();
	KPageWidgetItem *item = addPage( m_viewPage, i18n( "View" ) );
	item->setIcon( KIcon( "preferences-desktop-theme" ) );
	item->setHeader( i18n( "View Settings" ) );
	m_viewPage->setSettings( viewSets );

	m_diffPage = new DiffPage();
	item = addPage( m_diffPage, i18n( "Diff" ) );
	item->setIcon( KIcon( "text-x-patch" ) );
	item->setHeader( i18n( "Diff Settings" ) );
	m_diffPage->setSettings( diffSets );

//	frame = addVBoxPage( i18n( "" ), i18n( "" ), UserIcon( "" ) );

	connect( this, SIGNAL(defaultClicked()), SLOT(slotDefault()) );
	connect( this, SIGNAL(helpClicked()), SLOT(slotHelp()) );
	connect( this, SIGNAL(applyClicked()), SLOT(slotApply()) );
	connect( this, SIGNAL(okClicked()), SLOT(slotOk()) );
	connect( this, SIGNAL(cancelClicked()), SLOT(slotCancel()) );

	adjustSize();
}
开发者ID:ShermanHuang,项目名称:kdesdk,代码行数:34,代码来源:kompareprefdlg.cpp

示例6: KPageDialog

KoPAConfigureDialog::KoPAConfigureDialog(KoPAView* parent)
: KPageDialog(parent)
{
    setFaceType(List);
    setWindowTitle(i18n("Configure"));
    setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults);
    button(QDialogButtonBox::Ok)->setDefault(true);

    m_miscPage = new KoConfigMiscPage( parent->koDocument(), parent->kopaCanvas()->shapeController()->resourceManager() );
    KPageWidgetItem *item = addPage( m_miscPage, i18n( "Misc" ) );
    item->setHeader( i18n( "Misc" ) );
    item->setIcon(koIcon("preferences-other"));

    m_gridPage = new KoConfigGridPage(parent->koDocument());
    item = addPage(m_gridPage, i18n("Grid"));
    item->setHeader(i18n("Grid"));
    item->setIcon(koIcon("grid"));

    connect(m_miscPage, SIGNAL(unitChanged(KoUnit)), m_gridPage, SLOT(slotUnitChanged(KoUnit)));

    m_docPage = new KoConfigDocumentPage( parent->koDocument() );
    item = addPage( m_docPage, i18nc( "@title:tab Document settings page", "Document" ) );
    item->setHeader( i18n( "Document Settings" ) );
    item->setIcon(koIcon("document-properties"));

    m_authorPage = new KoConfigAuthorPage();
    item = addPage(m_authorPage, i18nc("@title:tab Author page", "Author"));
    item->setHeader(i18n("Author"));
    item->setIcon(koIcon("user-identity"));

    connect( this, SIGNAL(accepted()), this, SLOT(slotApply()) );
    connect( button(QDialogButtonBox::RestoreDefaults), SIGNAL(clicked(bool)), this, SLOT(slotDefault()));
    connect( button(QDialogButtonBox::Apply), SIGNAL(clicked(bool)), this, SLOT(slotApply()) );
    connect(this, SIGNAL(changed()), parent, SLOT(slotUpdateAuthorProfileActions()));
}
开发者ID:TheTypoMaster,项目名称:calligra,代码行数:35,代码来源:KoPAConfigureDialog.cpp

示例7: KPageDialog

KoDocumentInfoDlg::KoDocumentInfoDlg(QWidget* parent, KoDocumentInfo* docInfo)
    : KPageDialog(parent)
    , d(new KoDocumentInfoDlgPrivate)
{
    d->info = docInfo;

    setWindowTitle(i18n("Document Information"));
//    setInitialSize(QSize(500, 500));
    setFaceType(KPageDialog::List);
    setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
    button(QDialogButtonBox::Ok)->setDefault(true);

    d->aboutUi = new Ui::KoDocumentInfoAboutWidget();
    QWidget *infodlg = new QWidget();
    d->aboutUi->setupUi(infodlg);
    d->aboutUi->cbLanguage->addItems(KoGlobal::listOfLanguages());
    d->aboutUi->cbLanguage->setCurrentIndex(-1);

    KPageWidgetItem *page = new KPageWidgetItem(infodlg, i18n("General"));
    page->setHeader(i18n("General"));

    // Ugly hack, the mimetype should be a parameter, instead
    KoDocumentBase* doc = dynamic_cast< KoDocumentBase* >(d->info->parent());
    if (doc) {
        QMimeDatabase db;
        QMimeType mime = db.mimeTypeForName(doc->mimeType());
        if (mime.isValid()) {
            page->setIcon(KisIconUtils::loadIcon(mime.iconName()));
        }
    } else {
        // hide all entries not used in pages for KoDocumentInfoPropsPage
        d->aboutUi->filePathInfoLabel->setVisible(false);
        d->aboutUi->filePathLabel->setVisible(false);
        d->aboutUi->filePathSeparatorLine->setVisible(false);
        d->aboutUi->lblTypeDesc->setVisible(false);
        d->aboutUi->lblType->setVisible(false);
    }
    addPage(page);
    d->pages.append(page);

    initAboutTab();

    d->authorUi = new Ui::KoDocumentInfoAuthorWidget();
    QWidget *authordlg = new QWidget();
    d->authorUi->setupUi(authordlg);
    page = new KPageWidgetItem(authordlg, i18n("Author"));
    page->setHeader(i18n("Last saved by"));
    page->setIcon(koIcon("user-identity"));
    addPage(page);
    d->pages.append(page);

    initAuthorTab();
}
开发者ID:HOST-Oman,项目名称:krita,代码行数:53,代码来源:KoDocumentInfoDlg.cpp

示例8: registerPage

/**
 * \brief Registers the given InlineWidget as a new page and displays it
 * \author Peter Grasch
 * @param page the page to register
 */
void InlineWidgetView::registerPage(InlineWidget *page)
{
    Q_ASSERT(page);

    KPageWidgetItem *item = addPage(page, page->getTitle());
    item->setIcon(page->getIcon());
    item->setHeader(page->getDesc());

    emit registeredPage(page);
}
开发者ID:KDE,项目名称:simon,代码行数:15,代码来源:inlinewidgetview.cpp

示例9: newPage

void Konfigurator::newPage(KonfiguratorPage *page, const QString &name, const QString &desc, const QIcon &icon)
{
    KPageWidgetItem *item = new KPageWidgetItem(page, name);
    item->setIcon(icon);
    item->setHeader(desc);
    addPage(item);

    kgPages.append(item);
    connect(page, SIGNAL(sigChanged()), this, SLOT(slotApplyEnable()));
}
开发者ID:KDE,项目名称:krusader,代码行数:10,代码来源:konfigurator.cpp

示例10: addPage

void KPageWidgetTest::addPage()
{
  static int counter = 0;

  const QString title = QString( "dynamic folder %1" ).arg( QString::number( counter ) );
  KPageWidgetItem *item = mWidget->addPage( new QPushButton( title ) , title );
  item->setIcon( KIcon( "folder" ) );
  item->setHeader( QString( "Header Test No. %1" ).arg( QString::number( counter ) ) );
  item->setCheckable( true );

  counter++;
}
开发者ID:vasi,项目名称:kdelibs,代码行数:12,代码来源:kpagewidgettest.cpp

示例11: backendNames

ConfigDialog::ConfigDialog(QWidget *parent, const QString &name, KCoreConfigSkeleton *config) :
	KConfigDialog(parent, name, config),
	hasWidgetChanged(false)
{
	KPageWidgetItem *item;

	// General page
	item = addPage(new GeneralConfigWidget(NULL), i18nc("@title General settings", "General"));
	item->setHeader(i18n("General Settings"));
	item->setIcon(QIcon::fromTheme("preferences-other"));

	// Error Check page
	item = addPage(new ErrorsConfigWidget(NULL), i18nc("@title Error Check Settings", "Error Check"));
	item->setHeader(i18n("Error Check Settings"));
	item->setIcon(QIcon::fromTheme("games-endturn"));

	// Spelling page
	sonnetConfigWidget = new Sonnet::ConfigWidget(NULL);
	connect(sonnetConfigWidget, SIGNAL(configChanged()), this, SLOT(widgetChanged()));
	item = addPage(sonnetConfigWidget, i18nc("@title Spelling Settings", "Spelling"));
	item->setHeader(i18n("Spelling Settings"));
	item->setIcon(QIcon::fromTheme("tools-check-spelling"));

	// VideoPlayer page
	item = addPage(new PlayerConfigWidget(NULL), i18nc("@title VideoPlayer Settings", "VideoPlayer"));
	item->setHeader(i18n("VideoPlayer Settings"));
	item->setIcon(QIcon::fromTheme("mediaplayer-logo"));

	// Backend pages
	QStringList backendNames(VideoPlayer::instance()->backendNames());
	for(QStringList::ConstIterator it = backendNames.begin(); it != backendNames.end(); it++) {
		QWidget *configWidget = VideoPlayer::instance()->backend(*it)->newConfigWidget(0);
		if(configWidget) {
			item = addPage(configWidget, *it);
			item->setHeader(i18nc("@title VideoPlayer backend settings", "%1 Backend Settings", *it));
			item->setIcon(QIcon::fromTheme((*it).toLower() + "-logo"));
		}
	}
}
开发者ID:psyvisions,项目名称:subtitlecomposer,代码行数:39,代码来源:configdialog.cpp

示例12: QDialog

Preferences::Preferences(const QString& currentVariant, QWidget *parent)
: QDialog(parent) {

  setupUi(this);
  setWindowIcon(KIcon("tagua"));
  connect(buttonBox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(apply()));

  pagePref->hide();
  PrefBase *b;
  KPageWidgetItem *i;

  b = new PrefWrapper<PrefBoard>(currentVariant, this);
  connect(this, SIGNAL(applied()), b, SLOT(apply()));
  i = pagePref->addPage(b, "Board");
  i->setHeader("Board preferences:");
  i->setIcon(KIcon("games-config-board"));

  b = new PrefWrapper<PrefMoveList>(currentVariant, this);
  connect(this, SIGNAL(applied()), b, SLOT(apply()));
  i = pagePref->addPage(b, "Move list");
  i->setHeader("Move list preferences:");
  i->setIcon(KIcon("view-list-tree"));

  b = new PrefWrapper<PrefTheme>(currentVariant, this);
  connect(this, SIGNAL(applied()), b, SLOT(apply()));
  i = pagePref->addPage(b, "Theme");
  i->setHeader("Pieces & squares theme:");
  i->setIcon(KIcon("games-config-theme"));
  pagePref->show();

  b = new PrefWrapper<PrefEngines>(currentVariant, this);
  connect(this, SIGNAL(applied()), b, SLOT(apply()));
  i = pagePref->addPage(b, "Engines");
  i->setHeader("Engines:");
  i->setIcon(KIcon("help-hint"));
  pagePref->show();
}
开发者ID:Axure,项目名称:tagua,代码行数:37,代码来源:pref_preferences.cpp

示例13: KPageDialog

YahooUserInfoDialog::YahooUserInfoDialog( YahooContact *c, QWidget * parent )
: KPageDialog( parent ), m_contact(c)
{
	setFaceType( KPageDialog::List );
	setCaption( i18n( "Yahoo User Information" ) );
	setButtons( KDialog::User2 | KDialog::User1 | KDialog::Cancel );
	setDefaultButton( KDialog::Cancel );
	setButtonGuiItem( KDialog::User1, KGuiItem( i18n("Save and Close") ) );
	setButtonGuiItem( KDialog::User2, KGuiItem( i18n("Merge with existing entry") ) );
	showButton( KDialog::User2, false );

	kDebug(14180) << "Creating new yahoo user info widget";
	
	QWidget *genInfo = new QWidget(this);
	m_genInfoWidget = new Ui::YahooGeneralInfoWidget;
	m_genInfoWidget->setupUi( genInfo );
	KPageWidgetItem *genInfoItem = addPage( genInfo, i18n("General Info") );
	genInfoItem->setHeader(  i18n( "General Yahoo Information" ) );
	genInfoItem->setIcon( KIcon("user-identity") );
	
	QWidget *workInfo = new QWidget(this);
	m_workInfoWidget = new Ui::YahooWorkInfoWidget;
	m_workInfoWidget->setupUi( workInfo );
	KPageWidgetItem *workInfoItem = addPage( workInfo, i18n("Work Info") );
	workInfoItem->setHeader( i18n( "Work Information" ) );
	workInfoItem->setIcon( KIcon("mail-attachment") );
	
	QWidget *otherInfo = new QWidget(this);
	m_otherInfoWidget = new Ui::YahooOtherInfoWidget;
	m_otherInfoWidget->setupUi( otherInfo );
	KPageWidgetItem *otherInfoItem = addPage( otherInfo, i18n("Other Info") );
	otherInfoItem->setHeader( i18n( "Other Yahoo Information" ) );
	otherInfoItem->setIcon( KIcon("document-properties") );
	
	QObject::connect(this, SIGNAL(user1Clicked()), this, SLOT(slotSaveAndCloseClicked()));
	QObject::connect(this, SIGNAL(user2Clicked()), this, SLOT(slotUser2()));
}
开发者ID:Jtalk,项目名称:kopete-fork-xep0136,代码行数:37,代码来源:yahoouserinfodialog.cpp

示例14: configDialog

void KateGlobal::configDialog(QWidget *parent)
{
    QPointer<KPageDialog> kd = new KPageDialog(parent);
    kd->setCaption( i18n("Configure") );
    kd->setButtons( KDialog::Ok | KDialog::Cancel | KDialog::Apply | KDialog::Help );
    kd->setFaceType( KPageDialog::List );
    kd->setHelp( QString(), KGlobal::mainComponent().componentName() );

    QList<KTextEditor::ConfigPage*> editorPages;

    for (int i = 0; i < configPages (); ++i)
    {
        const QString name = configPageName (i);

        QFrame *page = new QFrame();

        KPageWidgetItem *item = kd->addPage( page, name );
        item->setHeader( configPageFullName (i) );
        item->setIcon( configPageIcon(i) );

        QVBoxLayout *topLayout = new QVBoxLayout( page );
        topLayout->setMargin( 0 );

        KTextEditor::ConfigPage *cp = configPage(i, page);
        connect(kd, SIGNAL(applyClicked  ( )), cp, SLOT(apply()));
        topLayout->addWidget( cp);
        editorPages.append (cp);
    }

    if (kd->exec() && kd)
    {
        KateGlobalConfig::global()->configStart ();
        KateDocumentConfig::global()->configStart ();
        KateViewConfig::global()->configStart ();
        KateRendererConfig::global()->configStart ();

        for (int i=0; i < editorPages.count(); ++i)
        {
            editorPages.at(i)->apply();
        }

        KateGlobalConfig::global()->configEnd ();
        KateDocumentConfig::global()->configEnd ();
        KateViewConfig::global()->configEnd ();
        KateRendererConfig::global()->configEnd ();
    }

    delete kd;
}
开发者ID:hlamer,项目名称:kate,代码行数:49,代码来源:kateglobal.cpp

示例15: addConfigPage

	KPageWidgetItem* Config::addConfigPage(KPageWidgetItem* parent, QWidget *page,
                                               const QString &itemName, const QIcon& icon,
                                               const QString &header)
	{
		KILE_DEBUG_MAIN << "slot: add config page item=" << itemName;

		// add page
		KPageWidgetItem *pageWidgetItem = addSubPage(parent, page, itemName);
		pageWidgetItem->setIcon(icon);
		pageWidgetItem->setHeader(header);

		// add to the dialog manager
		m_manager->addWidget(page);

		return pageWidgetItem;
	}
开发者ID:VolkerChristian,项目名称:kile,代码行数:16,代码来源:configurationdialog.cpp


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