Skip to content

Commit

Permalink
Merge pull request #34 from sailfishos/jb56638-v2
Browse files Browse the repository at this point in the history
[qtmozembed] Bring back previous setPreference and overload it. JB#56638 OMP#JOLLA-573
  • Loading branch information
rainemak committed Dec 17, 2021
2 parents 3c51d54 + 599830c commit d351c90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/qmozenginesettings.cpp
Expand Up @@ -523,6 +523,12 @@ void QMozEngineSettings::enableLowPrecisionBuffers(bool enabled)
d->enableLowPrecisionBuffers(enabled);
}

void QMozEngineSettings::setPreference(const QString &key, const QVariant &value)
{
Q_D(QMozEngineSettings);
d->setPreference(key, value);
}

void QMozEngineSettings::setPreference(const QString &key, const QVariant &value, PreferenceType preferenceType)
{
Q_D(QMozEngineSettings);
Expand Down
3 changes: 2 additions & 1 deletion src/qmozenginesettings.h
Expand Up @@ -88,7 +88,8 @@ class QMozEngineSettings : public QObject {
void enableLowPrecisionBuffers(bool enabled);

// Low-level API to set engine preferences.
Q_INVOKABLE void setPreference(const QString &key, const QVariant &value, PreferenceType preferenceType = UnknownPref);
Q_INVOKABLE void setPreference(const QString &key, const QVariant &value);
Q_INVOKABLE void setPreference(const QString &key, const QVariant &value, PreferenceType preferenceType);

Q_SIGNALS:
void autoLoadImagesChanged();
Expand Down

0 comments on commit d351c90

Please sign in to comment.