本文整理汇总了C++中KPageWidgetItem::setIcon方法的典型用法代码示例。如果您正苦于以下问题:C++ KPageWidgetItem::setIcon方法的具体用法?C++ KPageWidgetItem::setIcon怎么用?C++ KPageWidgetItem::setIcon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KPageWidgetItem
的用法示例。
在下文中一共展示了KPageWidgetItem::setIcon方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GeneralPageWidget
ConfigureOptionsDialog::ConfigureOptionsDialog(QWidget* parent, const OperationStack& ostack, const QString& name) :
KConfigDialog(parent, name, Config::self()),
m_GeneralPageWidget(new GeneralPageWidget(this)),
m_FileSystemColorsPageWidget(new FileSystemColorsPageWidget(this)),
m_AdvancedPageWidget(new AdvancedPageWidget(this)),
m_OperationStack(ostack)
{
setFaceType(List);
KPageWidgetItem* item = NULL;
item = addPage(&generalPageWidget(), i18nc("@title:tab general application settings", "General"), QString(), i18n("General Settings"));
item->setIcon(KIconLoader().loadIcon(QLatin1String("partitionmanager"), KIconLoader::Desktop));
connect(&generalPageWidget().comboDefaultFileSystem(), SIGNAL(activated(int)), SLOT(onComboDefaultFileSystemActivated(int)));
connect(generalPageWidget().radioButton, &QRadioButton::toggled, this, &ConfigureOptionsDialog::onShredSourceActivated);
item = addPage(&fileSystemColorsPageWidget(), i18nc("@title:tab", "File System Colors"), QString(), i18n("File System Color Settings"));
item->setIcon(KIconLoader().loadIcon(QLatin1String("format-fill-color"), KIconLoader::Desktop));
if (QCoreApplication::arguments().contains(QLatin1String("--advconfig")))
{
item = addPage(&advancedPageWidget(), i18nc("@title:tab advanced application settings", "Advanced"), QString(), i18n("Advanced Settings"));
item->setIcon(KIconLoader().loadIcon(QLatin1String("configure"), KIconLoader::Desktop));
connect(&advancedPageWidget().comboBackend(), SIGNAL(activated(int)), SLOT(onComboBackendActivated(int)));
}
示例2: 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()));
}
示例3: 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();
}
示例4: 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()));
}
示例5: 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]);
}
示例6: 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();
}
示例7: KPageDialog
ValidatorsDialog::ValidatorsDialog(QWidget *parent )
: KPageDialog( parent)
{
setButtons(Ok|Cancel);
setDefaultButton(Ok);
setModal(false);
showButtonSeparator(true);
setCaption(i18nc("@title:window", "Configure Validator Plugin"));
setMinimumWidth(400);
#ifdef HAVE_TIDY
QWidget* internalConfiguration = new QWidget();
m_internalUi.setupUi(internalConfiguration);
internalConfiguration->layout()->setMargin(0);
KPageWidgetItem *internalConfigurationItem = addPage(internalConfiguration, i18n("Internal Validation"));
internalConfigurationItem->setIcon(KIcon("validators"));
#endif
QWidget* remoteConfiguration = new QWidget();
m_remoteUi.setupUi(remoteConfiguration);
remoteConfiguration->layout()->setMargin(0);
KPageWidgetItem *remoteConfigurationItem = addPage(remoteConfiguration, i18n("Remote Validation"));
remoteConfigurationItem->setIcon(KIcon("validators"));
connect(this,SIGNAL(okClicked()),this,SLOT(slotOk()));
connect(this,SIGNAL(cancelClicked()),this,SLOT(slotCancel()));
load();
}
示例8: 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();
}
示例9: KConfigDialog
ConfigDialog::ConfigDialog(QWidget* parent)
: KConfigDialog(parent, "Settings", GwenviewConfig::self())
, d(new ConfigDialogPrivate)
{
setFaceType(KPageDialog::List);
setButtons(KDialog::Ok | KDialog::Cancel | KDialog::Apply | KDialog::Default);
showButtonSeparator(true);
QWidget* widget;
KPageWidgetItem* pageItem;
// General
widget = setupPage(d->mGeneralConfigPage);
pageItem = addPage(widget, i18n("General"));
pageItem->setIcon(KIcon("gwenview"));
connect(d->mGeneralConfigPage.kcfg_ViewBackgroundValue, SIGNAL(valueChanged(int)), SLOT(updateViewBackgroundFrame()));
// Image View
widget = setupPage(d->mImageViewConfigPage);
d->mAlphaBackgroundModeGroup = new InvisibleButtonGroup(widget);
d->mAlphaBackgroundModeGroup->setObjectName(QLatin1String("kcfg_AlphaBackgroundMode"));
d->mAlphaBackgroundModeGroup->addButton(d->mImageViewConfigPage.checkBoardRadioButton, int(RasterImageView::AlphaBackgroundCheckBoard));
d->mAlphaBackgroundModeGroup->addButton(d->mImageViewConfigPage.solidColorRadioButton, int(RasterImageView::AlphaBackgroundSolid));
d->mWheelBehaviorGroup = new InvisibleButtonGroup(widget);
d->mWheelBehaviorGroup->setObjectName(QLatin1String("kcfg_MouseWheelBehavior"));
d->mWheelBehaviorGroup->addButton(d->mImageViewConfigPage.mouseWheelScrollRadioButton, int(MouseWheelBehavior::Scroll));
d->mWheelBehaviorGroup->addButton(d->mImageViewConfigPage.mouseWheelBrowseRadioButton, int(MouseWheelBehavior::Browse));
d->mAnimationMethodGroup = new InvisibleButtonGroup(widget);
d->mAnimationMethodGroup->setObjectName(QLatin1String("kcfg_AnimationMethod"));
d->mAnimationMethodGroup->addButton(d->mImageViewConfigPage.glAnimationRadioButton, int(DocumentView::GLAnimation));
d->mAnimationMethodGroup->addButton(d->mImageViewConfigPage.softwareAnimationRadioButton, int(DocumentView::SoftwareAnimation));
d->mAnimationMethodGroup->addButton(d->mImageViewConfigPage.noAnimationRadioButton, int(DocumentView::NoAnimation));
d->mThumbnailBarOrientationGroup = new InvisibleButtonGroup(widget);
d->mThumbnailBarOrientationGroup->setObjectName(QLatin1String("kcfg_ThumbnailBarOrientation"));
d->mThumbnailBarOrientationGroup->addButton(d->mImageViewConfigPage.horizontalRadioButton, int(Qt::Horizontal));
d->mThumbnailBarOrientationGroup->addButton(d->mImageViewConfigPage.verticalRadioButton, int(Qt::Vertical));
pageItem = addPage(widget, i18n("Image View"));
pageItem->setIcon(KIcon("view-preview"));
// Advanced
widget = setupPage(d->mAdvancedConfigPage);
pageItem = addPage(widget, i18n("Advanced"));
pageItem->setIcon(KIcon("preferences-other"));
d->mAdvancedConfigPage.cacheHelpLabel->setFont(KGlobalSettings::smallestReadableFont());
updateViewBackgroundFrame();
}
示例10: ebrowsingInfo
Private::Private(SettingsDialog *parent)
{
KPageWidgetItem *pageItem;
// -- 1
generalWidg = new GeneralWidget(parent);
generalWidg->layout()->setMargin(0);
pageItem = parent->addPage(generalWidg, i18n("General"));
pageItem->setIcon(KIcon("rekonq"));
// -- 2
tabsWidg = new TabsWidget(parent);
tabsWidg->layout()->setMargin(0);
pageItem = parent->addPage(tabsWidg, i18n("Tabs"));
pageItem->setIcon(KIcon("tab-duplicate"));
// -- 3
appearanceWidg = new AppearanceWidget(parent);
appearanceWidg->layout()->setMargin(0);
pageItem = parent->addPage(appearanceWidg, i18n("Appearance"));
pageItem->setIcon(KIcon("preferences-desktop-font"));
// -- 4
webkitWidg = new WebKitWidget(parent);
webkitWidg->layout()->setMargin(0);
pageItem = parent->addPage(webkitWidg, i18n("WebKit"));
QString webkitIconPath = KStandardDirs::locate("appdata", "pics/webkit-icon.png");
KIcon webkitIcon = KIcon(QIcon(webkitIconPath));
pageItem->setIcon(webkitIcon);
// -- 5
networkWidg = new NetworkWidget(parent);
networkWidg->layout()->setMargin(0);
pageItem = parent->addPage(networkWidg , i18n("Network"));
pageItem->setIcon(KIcon("preferences-system-network"));
// -- 6
adBlockWidg = new AdBlockWidget(parent);
adBlockWidg->layout()->setMargin(0);
pageItem = parent->addPage(adBlockWidg , i18n("Ad Block"));
pageItem->setIcon(KIcon("preferences-web-browser-adblock"));
// -- 7
shortcutsEditor = new KShortcutsEditor(Application::instance()->mainWindow()->actionCollection(), parent);
pageItem = parent->addPage(shortcutsEditor , i18n("Shortcuts"));
pageItem->setIcon(KIcon("configure-shortcuts"));
// -- 8
KCModuleInfo ebrowsingInfo("ebrowsing.desktop");
ebrowsingModule = new KCModuleProxy(ebrowsingInfo, parent);
pageItem = parent->addPage(ebrowsingModule, i18n(ebrowsingInfo.moduleName().toUtf8()));
pageItem->setIcon(KIcon(ebrowsingInfo.icon()));
// WARNING
// remember wheh changing here that the smallest netbooks
// have a 1024x576 resolution. So DON'T bother that limits!!
parent->setMinimumSize(700, 525);
}
示例11: addConfigFolder
KPageWidgetItem* Config::addConfigFolder(const QString §ion, const QString &icon)
{
KPageWidgetItem *toReturn = addPage(new QWidget(this), section);
toReturn->setIcon(QIcon::fromTheme(icon));
return toReturn;
}
示例12: KPageDialog
//-----------------------------------------------------------------------------
HighscoresDialog::HighscoresDialog(int rank, QWidget *parent)
: KPageDialog(parent), _rank(rank), _tab(0)
{
// kDebug(11001) << ": HighscoresDialog";
setWindowTitle( i18n("Highscores") );
// TODO setButtons( Close|User1|User2 );
// TODO setDefaultButton( Close );
if ( internal->nbGameTypes()>1 )
setFaceType( KPageDialog::Tree );
else
setFaceType( KPageDialog::Plain );
// TODO setButtonGuiItem( User1, KGuiItem(i18n("Configure..."), QLatin1String( "configure" )) );
// TODO setButtonGuiItem( User2, KGuiItem(i18n("Export...")) );
connect( this, SIGNAL(user1Clicked()), SLOT(slotUser1()) );
connect( this, SIGNAL(user2Clicked()), SLOT(slotUser2()) );
for (uint i=0; i<internal->nbGameTypes(); i++) {
QString title = internal->manager.gameTypeLabel(i, Manager::I18N);
QString icon = internal->manager.gameTypeLabel(i, Manager::Icon);
HighscoresWidget *hsw = new HighscoresWidget(0);
KPageWidgetItem *pageItem = new KPageWidgetItem( hsw, title);
pageItem->setIcon( KIcon( BarIcon(icon, KIconLoader::SizeLarge) ) );
addPage( pageItem );
_pages.append(pageItem);
connect(hsw, SIGNAL(tabChanged(int)), SLOT(tabChanged(int)));
}
connect(this, SIGNAL(currentPageChanged(KPageWidgetItem*,KPageWidgetItem*)),
SLOT(highscorePageChanged(KPageWidgetItem*,KPageWidgetItem*)));
setCurrentPage(_pages[internal->gameType()]);
}
示例13: setupPages
void ConquirereSettingsDialog::setupPages()
{
setFaceType( List );
setWindowTitle(i18n("Preferences"));
setButtons(Reset | Ok | Apply | Cancel);
setDefaultButton(Ok);
enableButtonApply(false);
setModal(true);
showButtonSeparator(true);
m_appearanceSettings = new AppearanceSettings();
connect(this, SIGNAL(applyClicked()), m_appearanceSettings, SLOT(applySettings()));
connect(this, SIGNAL(resetClicked()), m_appearanceSettings, SLOT(resetSettings()));
connect(this, SIGNAL(okClicked()), m_appearanceSettings, SLOT(applySettings()));
connect(m_appearanceSettings, SIGNAL(contentChanged()), this, SLOT(contentChanged()));
KPageWidgetItem *asitem = addPage( m_appearanceSettings, i18n( "Appearance" ) );
asitem->setIcon( KIcon( "view-choose" ) );
m_librarySettings = new LibrarySettings();
connect(this, SIGNAL(applyClicked()), m_librarySettings, SLOT(applySettings()));
connect(this, SIGNAL(resetClicked()), m_librarySettings, SLOT(resetSettings()));
connect(this, SIGNAL(okClicked()), m_librarySettings, SLOT(applySettings()));
connect(m_librarySettings, SIGNAL(contentChanged()), this, SLOT(contentChanged()));
KPageWidgetItem *libsitem = addPage( m_librarySettings, i18n( "Library" ) );
libsitem->setIcon( KIcon( "folder-database" ) );
m_exportSettings = new ExportSettings();
connect(this, SIGNAL(applyClicked()), m_exportSettings, SLOT(applySettings()));
connect(this, SIGNAL(resetClicked()), m_exportSettings, SLOT(resetSettings()));
connect(this, SIGNAL(okClicked()), m_exportSettings, SLOT(applySettings()));
connect(m_exportSettings, SIGNAL(contentChanged()), this, SLOT(contentChanged()));
KPageWidgetItem *esitem = addPage( m_exportSettings, i18n( "Export" ) );
esitem->setIcon( KIcon( "document-export" ) );
m_systemSyncSettings = new SystemSyncSettings();
connect(this, SIGNAL(applyClicked()), m_systemSyncSettings, SLOT(applySettings()));
connect(this, SIGNAL(resetClicked()), m_systemSyncSettings, SLOT(resetSettings()));
connect(this, SIGNAL(okClicked()), m_systemSyncSettings, SLOT(applySettings()));
connect(m_systemSyncSettings, SIGNAL(contentChanged()), this, SLOT(contentChanged()));
KPageWidgetItem *sssitem = addPage( m_systemSyncSettings, i18n( "Synchronize" ) );
sssitem->setIcon( KIcon( "view-refresh" ) );
}
示例14: 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);
}
示例15: 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()));
}