示例#1
0
Settings::Settings( QObject* o )
	: QSettings( QDir::toNativeSeparators( getIniFile( mProgramName ) ), QSettings::IniFormat, o )
{
	/*
	This used to be "beginGroup( mProgramVersion );" so users would lose their
	config with each new release...
	*/
	beginGroup( "0.9.11" );
}
示例#2
0
Settings::Settings( QObject* o )
	: QSettings( QDir::convertSeparators( getIniFile( mProgramName ) ), QSettings::IniFormat, o )
{ beginGroup( mProgramVersion ); }
示例#3
0
文件: Ini.cpp 项目: 0179cool/rpcs3
void saveIniFile()
{
	getIniFile()->SaveFile(DEF_CONFIG_NAME);
}
示例#4
0
文件: Ini.cpp 项目: 0179cool/rpcs3
//Ini
Ini::Ini()
{
	m_Config = getIniFile();
}
示例#5
0
文件: Ini.cpp 项目: Bigpet/rpcs3
void saveIniFile()
{
	getIniFile()->SaveFile(std::string(rPlatform::getConfigDir() + DEF_CONFIG_NAME).c_str());
}
示例#6
0
/*!
	\details Construct a new pSettings
	\param parent The object parent
	\param name The settings name
	\param version The settings version.
*/
pSettings::pSettings( QObject* parent,  const QString& name, const QString& version )
	: QSettings( getIniFile( name, version ), QSettings::IniFormat, parent )
{}