changing card deck styles works basically
This commit is contained in:
@@ -51,7 +51,7 @@ void CardDeckStyleReader::readStyleFile(QString file) {
|
||||
fallBack = 1;
|
||||
}
|
||||
QFileInfo info(currentFileName);
|
||||
currentFileDir = info.absolutePath();
|
||||
currentDir = info.absolutePath()+"/";
|
||||
|
||||
//start reading the file and fill vars
|
||||
string tempString1("");
|
||||
@@ -77,6 +77,6 @@ void CardDeckStyleReader::readStyleFile(QString file) {
|
||||
|
||||
QString CardDeckStyleReader::getPreview()
|
||||
{
|
||||
return QString(currentFileDir+"/"+Preview);
|
||||
return QString(currentDir+"/"+Preview);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,9 +37,10 @@ public:
|
||||
|
||||
QString getStyleDescription() const { return StyleDescription; }
|
||||
QString getCurrentFileName() const { return currentFileName; }
|
||||
QString getCurrentDir() const { return currentDir; }
|
||||
QString getPreview();
|
||||
|
||||
bool getFallBack() const { return fallBack; }
|
||||
bool getFallBack() const { return fallBack; }
|
||||
|
||||
private:
|
||||
|
||||
@@ -47,7 +48,7 @@ private:
|
||||
QString Preview;
|
||||
|
||||
QString currentFileName;
|
||||
QString currentFileDir;
|
||||
QString currentDir;
|
||||
|
||||
ConfigFile *myConfig;
|
||||
gameTableImpl *myW;
|
||||
|
||||
Reference in New Issue
Block a user