Add ClientOptions to be able to pass around client name and version (#365)
* ClientOptions and Qt user agent * Update CHANGELOG.md Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch> Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>
This commit is contained in:
@@ -348,6 +348,38 @@ void Settings::setLocalFontFamily(const QString &family)
|
||||
m_localFontFamily = family;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the client name. Returns an empty string if no client name is set.
|
||||
*/
|
||||
QString Settings::clientName() const
|
||||
{
|
||||
return m_clientName;
|
||||
}
|
||||
|
||||
/*!
|
||||
Sets the client name.
|
||||
*/
|
||||
void Settings::setClientName(const QString &name)
|
||||
{
|
||||
m_clientName = name;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the client version. Returns an empty string if no client version is set.
|
||||
*/
|
||||
QString Settings::clientVersion() const
|
||||
{
|
||||
return m_clientVersion;
|
||||
}
|
||||
|
||||
/*!
|
||||
Sets the client version.
|
||||
*/
|
||||
void Settings::setClientVersion(const QString &version)
|
||||
{
|
||||
m_clientVersion = version;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns resource transformation callback used to transform requested URLs.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user