path to UTF8

configfile split
This commit is contained in:
doitux
2007-04-18 00:11:24 +00:00
parent 27cd08ccb0
commit 2b94ce958f
33 changed files with 565 additions and 498 deletions
@@ -24,11 +24,12 @@
using namespace std;
joinNetworkGameDialogImpl::joinNetworkGameDialogImpl(QWidget *parent)
: QDialog(parent)
joinNetworkGameDialogImpl::joinNetworkGameDialogImpl(QWidget *parent, std::string path)
: QDialog(parent), myConfig(0)
{
setupUi(this);
myConfig = new ConfigFile(path);
setupUi(this);
//Profile Name darf nicht mit einer Zahl beginnen --> XML konform
QRegExp rx("[A-Z|a-z]+[A-Z|a-z|\\d]*");
@@ -39,7 +40,7 @@ joinNetworkGameDialogImpl::joinNetworkGameDialogImpl(QWidget *parent)
lineEdit_ipAddress->setFocus();
myServerProfilesFile = myConfig.readConfigString("DataDir")+"serverprofiles.xml";
myServerProfilesFile = myConfig->readConfigString("DataDir")+"serverprofiles.xml";
//Anlegen wenn noch nicht existiert!
QFile serverProfilesfile(QString::fromUtf8(myServerProfilesFile.c_str()));