waynew
19th November 2009, 22:33
I'm trying to set up a class with a signal, but it fails to compile.
#ifndef CONTROLDB_H
#define CONTROLDB_H
#include <QString>
class ControlDB:public QObject
{
public:
ControlDB();
void ControlDB::makeControlDB();
void ControlDB::setLastLog(QString);
void ControlDB::setOper(QString);
QString ControlDB::getLastLog();
QString ControlDB::getOper();
signals:
void valueChanged(QString);
};
#endif // CONTROLDB_H
Here is the error:
error: expected class-name before '{' token
What am I doing wrong here?
#ifndef CONTROLDB_H
#define CONTROLDB_H
#include <QString>
class ControlDB:public QObject
{
public:
ControlDB();
void ControlDB::makeControlDB();
void ControlDB::setLastLog(QString);
void ControlDB::setOper(QString);
QString ControlDB::getLastLog();
QString ControlDB::getOper();
signals:
void valueChanged(QString);
};
#endif // CONTROLDB_H
Here is the error:
error: expected class-name before '{' token
What am I doing wrong here?