Your appendWithImageName()
function requires a variable of type tTimeMods
(such as timeTypeFunction
).
You are instead passing in a variable timeTypeFunction.dateTimeMod1
which is of type QDateTime
, hence the error.
It looks like your intended call should be changed from:
QString pathString = appendWithImageName(timeTypeFunction.dateTimeMod1);
to:
QString pathString = appendWithImageName(timeTypeFunction);
since that appendWithImageName()
function itself extracts the information from the dateTimeMod1
member of the structure passed to it.