summaryrefslogtreecommitdiff
path: root/src/qdesktopitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdesktopitem.cpp')
-rw-r--r--src/qdesktopitem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qdesktopitem.cpp b/src/qdesktopitem.cpp
index c0812152..d50fa1bc 100644
--- a/src/qdesktopitem.cpp
+++ b/src/qdesktopitem.cpp
@@ -80,6 +80,11 @@ int QDesktopItem::availableHeight() const
return desktopWidget.availableGeometry().height();
}
+bool QDesktopItem::nativeTextRendering() const
+{
+ return qgetenv("DESKTOPCOMPONENTS_USE_NATIVE_TEXT").toInt() != 0;
+}
+
QDesktopItem *QDesktopItem::qmlAttachedProperties(QObject *obj) {
return new QDesktopItem(obj);
}