forked from qt-creator/qt-creator
qds: add QString licenseeEmail()
Change-Id: I3bf43e776358cd0a72b4761ce290addc2b832f60 Reviewed-by: Tuomo Pelkonen <tuomo.pelkonen@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -102,4 +102,18 @@ inline QString licensee()
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline QString licenseeEmail()
|
||||||
|
{
|
||||||
|
if (auto plugin = Internal::licenseCheckerPlugin()) {
|
||||||
|
QString retVal;
|
||||||
|
bool success = QMetaObject::invokeMethod(plugin,
|
||||||
|
"licenseeEmail",
|
||||||
|
Qt::DirectConnection,
|
||||||
|
Q_RETURN_ARG(QString, retVal));
|
||||||
|
if (success)
|
||||||
|
return retVal;
|
||||||
|
}
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Utils
|
} // namespace Utils
|
||||||
|
Reference in New Issue
Block a user