Retrieving core name and version from CMakeLists.txt and use it in GenericCore::toString().
This commit is contained in:
@ -3,12 +3,16 @@
|
||||
#include <QDebug>
|
||||
#include <QString>
|
||||
|
||||
#include "CoreConfig.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
GenericCore::GenericCore() { qDebug() << "Creating core..."; }
|
||||
|
||||
GenericCore::~GenericCore() { qDebug() << "Destroying core..."; }
|
||||
|
||||
QString GenericCore::toString() const { return QString("GenericCore (Version x.y.z)"); }
|
||||
QString GenericCore::toString() const {
|
||||
return QString("%1 (Version %2)").arg(CORE_NAME).arg(CORE_VERSION);
|
||||
}
|
||||
|
||||
void GenericCore::sayHello() const { qDebug() << "Hello from the core!"; }
|
||||
|
||||
Reference in New Issue
Block a user