示例#1
0
void ContextHelp::slotSave()
{
	if ( !saveDescription( m_currentLanguage ) )
		return;
	
	setContextHelp( m_pNameLabel->text(), itemLibrary()->description( m_lastItemType, KGlobal::locale()->language() ) );
	m_pWidgetStack->raiseWidget( 0 );
}
void FileDescriptionDBManager::saveDescriptions(const boost::filesystem::path& path)
{
	std::lock_guard<std::recursive_mutex> lock(descriptionManagerMutex);

	for(auto i: descriptions)
    	for (auto j : i)
	    	saveDescription(path, j.first, j.second);
}
示例#3
0
void ContextHelp::setCurrentLanguage( const QString & language )
{
	if ( !saveDescription( m_currentLanguage ) )
	{
		m_pLanguageSelect->blockSignals( true );
		m_pLanguageSelect->setCurrentItem( m_currentLanguage );
		m_pLanguageSelect->blockSignals( false );
		return;
	}
	
	m_currentLanguage = language;
	slotEdit();
}