PlasmaQuick::QuickViewSharedEngine Class

class PlasmaQuick::QuickViewSharedEngine
Header: #include <QuickViewSharedEngine>
CMake: find_package(PlasmaQuick REQUIRED)
target_link_libraries(mytarget PRIVATE Plasma::PlasmaQuick)
Inherits: QQuickWindow

Public Functions

PlasmaQuick::QuickViewSharedEngine::ResizeMode resizeMode() const
void setResizeMode(PlasmaQuick::QuickViewSharedEngine::ResizeMode)
void setTranslationDomain(const QString &translationDomain)
QUrl source() const
QQmlComponent::Status status() const
QString translationDomain() const

Public Slots

void setSource(const QUrl &url)

Signals

void resizeModeChanged(PlasmaQuick::QuickViewSharedEngine::ResizeMode resizeMode)
void sourceChanged(const QUrl &source)
void statusChanged(QQmlComponent::Status status)

Detailed Description

@class PlasmaQuick::QuickViewSharedEngine quickviewsharedengine.h KQuickAddons/QuickViewSharedEngine

Member Function Documentation

void QuickViewSharedEngine::setTranslationDomain(const QString &translationDomain)

Installs a translation domain for all i18n global functions. If a translation domain is set all i18n calls delegate to the matching i18nd calls with the provided translation domain.

The translationDomain affects all i18n calls including those from imports. Because of that modules intended to be used as imports should prefer the i18nd variants and set the translation domain explicitly in each call.

This method is only required if your declarative usage is inside a library. If it's in an application there is no need to set the translation domain as the application's domain can be used.

@param translationDomain The translation domain to be used for i18n calls.

See also translationDomain().

QString QuickViewSharedEngine::translationDomain() const

@return the translation domain for the i18n calls done in this QML engine

See also setTranslationDomain().