Ok, here's the unmodified version well excerpts at least:
comparison.h
#include <QMainWindow>
#include <QFile>
#include <QDir>
#include <QString>
#include <QTextStream>
#include <QMessageBox>
#include "ui_comparison.h"
#include "filemanager.h"
public:
struct ChartProperties
{
};
#include <QMainWindow>
#include <QFile>
#include <QDir>
#include <QString>
#include <QTextStream>
#include <QMessageBox>
#include "ui_comparison.h"
#include "filemanager.h"
public:
struct ChartProperties
{
QString yAxisVariable;
QString xAxisVariable;
};
To copy to clipboard, switch view to plain text mode
comparison.cpp
#include "comparison.h"
if(VariablesPresent(sChart1.yAxisVariable) && VariablesPresent(sChart1.xAxisVariable))
#include "comparison.h"
if(VariablesPresent(sChart1.yAxisVariable) && VariablesPresent(sChart1.xAxisVariable))
To copy to clipboard, switch view to plain text mode
P.S. the && part wasn't included when I tried to compile it, I've added it later on top of the error and currently am just waiting to get this error fixed to see if this && part is going to cause problems later on in the code.
filemanager.h
#include <QFile>
#include <QDir>
#include <QString>
#include <comparison.h>
#include <QTextStream>
bool VariablesPresent
(QString userVariable
);
#include <QFile>
#include <QDir>
#include <QString>
#include <comparison.h>
#include <QTextStream>
bool VariablesPresent(QString userVariable);
To copy to clipboard, switch view to plain text mode
filemanager.cpp
#include "filemanager.h"
bool VariablesPresent
(QString userVariable
) {
QFile cVariableEquivalents
("/*directory*/");
if(!cVariableEquivalents().exists())
#include "filemanager.h"
bool VariablesPresent(QString userVariable)
{
QFile cVariableEquivalents("/*directory*/");
if(!cVariableEquivalents().exists())
To copy to clipboard, switch view to plain text mode
etc...
P.P.S. I'm not sure if bool is what I need but I'm using it for now, might change the function later on.
Bookmarks