本文整理汇总了C++中ksharedconfig::Ptr::sync方法的典型用法代码示例。如果您正苦于以下问题:C++ Ptr::sync方法的具体用法?C++ Ptr::sync怎么用?C++ Ptr::sync使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ksharedconfig::Ptr
的用法示例。
在下文中一共展示了Ptr::sync方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: applySettings
void SetupMetadata::applySettings()
{
KSharedConfig::Ptr config = KGlobal::config();
KConfigGroup group = config->group(d->configGroupName);
group.writeEntry(d->configEXIFRotateEntry, d->exifRotateBox->isChecked());
group.writeEntry(d->configEXIFSetOrientationEntry, d->exifSetOrientationBox->isChecked());
config->sync();
d->tagsCfgPanel->applySettings();
}
示例2: writeSettings
void BlurTool::writeSettings()
{
KSharedConfig::Ptr config = KGlobal::config();
KConfigGroup group = config->group(d->configGroupName);
group.writeEntry(d->configRadiusAdjustmentEntry, d->radiusInput->value());
config->sync();
}
示例3: writeSettings
void FilmGrainTool::writeSettings()
{
KSharedConfig::Ptr config = KGlobal::config();
KConfigGroup group = config->group(d->configGroupName);
d->settingsView->writeSettings(group);
config->sync();
}
示例4: saveSettings
void CollectionPage::saveSettings()
{
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup group = config->group("General Settings");
group.writeEntry("Version", digikam_version);
config->sync();
}
示例5: writeSettings
void CharcoalTool::writeSettings()
{
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup group = config->group(d->configGroupName);
group.writeEntry(d->configPencilAdjustmentEntry, d->pencilInput->value());
group.writeEntry(d->configSmoothAdjustmentEntry, d->smoothInput->value());
config->sync();
}
示例6: applySettings
void SetupTemplate::applySettings()
{
d->listView->applySettings();
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup group = config->group(QLatin1String("Setup Dialog"));
group.writeEntry(QLatin1String("Template Tab"), (int)(d->tview->currentIndex()));
config->sync();
}
示例7: conf
void KDirSelectDialog::Private::saveConfig(KSharedConfig::Ptr config, const QString& group)
{
KConfigGroup conf( config, group );
KConfigGroup::WriteConfigFlags flags(KConfigGroup::Persistent|KConfigGroup::Global);
conf.writePathEntry( "History Items", m_urlCombo->historyItems(), flags );
conf.writeEntry( "DirSelectDialog Size", m_parent->size(), flags );
config->sync();
}
示例8: saveSettings
void IPTCEditWidget::saveSettings()
{
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup group = config->group(QLatin1String("All Metadata Edit Settings"));
group.writeEntry(QLatin1String("All IPTC Edit Page"), activePageIndex());
group.writeEntry(QLatin1String("All Sync JFIF Comment"), d->contentPage->syncJFIFCommentIsChecked());
group.writeEntry(QLatin1String("All Sync EXIF Comment"), d->contentPage->syncEXIFCommentIsChecked());
group.writeEntry(QLatin1String("All Sync EXIF Date"), d->originPage->syncEXIFDateIsChecked());
config->sync();
}
示例9: writeSettings
void QueueMgrWindow::writeSettings()
{
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup group = config->group(configGroupName());
d->topSplitter->saveState(group, d->TOP_SPLITTER_CONFIG_KEY);
d->bottomSplitter->saveState(group, d->BOTTOM_SPLITTER_CONFIG_KEY);
d->verticalSplitter->saveState(group, d->VERTICAL_SPLITTER_CONFIG_KEY);
config->sync();
}
示例10: writeSettings
void BCGTool::writeSettings()
{
KSharedConfig::Ptr config = KGlobal::config();
KConfigGroup group = config->group(d->configGroupName);
group.writeEntry(d->configHistogramChannelEntry, (int)d->gboxSettings->histogramBox()->channel());
group.writeEntry(d->configHistogramScaleEntry, (int)d->gboxSettings->histogramBox()->scale());
d->settingsView->writeSettings(group);
config->sync();
}
示例11: applySettings
void SetupMisc::applySettings()
{
KSharedConfig::Ptr config = KGlobal::config();
KConfigGroup group = config->group(d->configGroupName);
group.writeEntry(d->configDeleteItem2TrashEntry, d->useTrash->isChecked());
group.writeEntry(d->configShowSplashEntry, d->showSplash->isChecked());
group.writeEntry(d->configSidebarTitleStyleEntry, d->sidebarType->currentIndex());
group.writeEntry(d->configSortOrderEntry, d->sortOrderComboBox->currentIndex());
group.writeEntry(d->configReverseSortEntry, d->sortReverse->isChecked());
config->sync();
}
示例12: writeSettings
void ShearTool::writeSettings()
{
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup group = config->group(d->configGroupName);
// group.writeEntry(d->configMainHAngleEntry, d->mainHAngleInput->value());
// group.writeEntry(d->configMainVAngleEntry, d->mainVAngleInput->value());
// group.writeEntry(d->configFineHAngleEntry, d->fineHAngleInput->value());
// group.writeEntry(d->configFineVAngleEntry, d->fineVAngleInput->value());
group.writeEntry(d->configAntiAliasingEntry, d->antialiasInput->isChecked());
config->sync();
}
示例13: writeSettings
void LensDistortionTool::writeSettings()
{
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup group = config->group(d->configGroupName);
group.writeEntry(d->config2ndOrderDistortionEntry, d->mainInput->value());
group.writeEntry(d->config4thOrderDistortionEntry, d->edgeInput->value());
group.writeEntry(d->configZoomFactorEntry, d->rescaleInput->value());
group.writeEntry(d->configBrightenEntry, d->brightenInput->value());
config->sync();
}
示例14: triggerRescale
void cardMap::triggerRescale()
{
// TODO save settings to some config file on s60?
#ifndef Q_OS_SYMBIAN
KSharedConfig::Ptr config = KGlobal::config();
KConfigGroup cs(config, settings_group );
cs.writeEntry( "CardWidth", d->_wantedCardWidth );
config->sync();
#endif
if ( PatienceView::instance() && PatienceView::instance()->dscene() )
PatienceView::instance()->dscene()->rescale(false);
}
示例15: applySettings
void SetupIOFiles::applySettings()
{
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup group = config->group(d->configGroupName);
group.writeEntry(d->configJPEGCompressionEntry, d->JPEGOptions->getCompressionValue());
group.writeEntry(d->configJPEGSubSamplingEntry, d->JPEGOptions->getSubSamplingValue());
group.writeEntry(d->configPNGCompressionEntry, d->PNGOptions->getCompressionValue());
group.writeEntry(d->configTIFFCompressionEntry, d->TIFFOptions->getCompression());
#ifdef HAVE_JASPER
group.writeEntry(d->configJPEG2000CompressionEntry, d->JPEG2000Options->getCompressionValue());
group.writeEntry(d->configJPEG2000LossLessEntry, d->JPEG2000Options->getLossLessCompression());
#endif // HAVE_JASPER
group.writeEntry(d->configPGFCompressionEntry, d->PGFOptions->getCompressionValue());
group.writeEntry(d->configPGFLossLessEntry, d->PGFOptions->getLossLessCompression());
group.writeEntry(d->configShowImageSettingsDialog, d->showImageSettingsDialog->isChecked());
config->sync();
}