Back to rev. 347
This commit is contained in:
@@ -24,12 +24,11 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
joinNetworkGameDialogImpl::joinNetworkGameDialogImpl(QWidget *parent, std::string path)
|
||||
: QDialog(parent), myConfig(0)
|
||||
joinNetworkGameDialogImpl::joinNetworkGameDialogImpl(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
myConfig = new ConfigFile(path);
|
||||
|
||||
setupUi(this);
|
||||
|
||||
setupUi(this);
|
||||
|
||||
//Profile Name darf nicht mit einer Zahl beginnen --> XML konform
|
||||
QRegExp rx("[A-Z|a-z]+[A-Z|a-z|\\d]*");
|
||||
@@ -40,7 +39,7 @@ joinNetworkGameDialogImpl::joinNetworkGameDialogImpl(QWidget *parent, std::strin
|
||||
|
||||
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()));
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "configfile.h"
|
||||
#include <QtGui>
|
||||
#include <QtCore>
|
||||
|
||||
@@ -33,9 +34,9 @@ class ConfigFile;
|
||||
class joinNetworkGameDialogImpl: public QDialog, public Ui::joinNetworkGameDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
joinNetworkGameDialogImpl(QWidget *parent = 0, std::string = "");
|
||||
joinNetworkGameDialogImpl(QWidget *parent = 0);
|
||||
|
||||
|
||||
ConfigFile myConfig;
|
||||
std::string myServerProfilesFile;
|
||||
|
||||
public slots:
|
||||
@@ -46,9 +47,6 @@ public slots:
|
||||
void saveServerProfile();
|
||||
void deleteServerProfile();
|
||||
void keyPressEvent ( QKeyEvent * event );
|
||||
|
||||
private:
|
||||
ConfigFile *myConfig;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user