summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tools/undo/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/tools/undo/main.cpp')
-rw-r--r--examples/widgets/tools/undo/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/widgets/tools/undo/main.cpp b/examples/widgets/tools/undo/main.cpp
index a5ec1b1b83..1a6dcf8c48 100644
--- a/examples/widgets/tools/undo/main.cpp
+++ b/examples/widgets/tools/undo/main.cpp
@@ -54,6 +54,9 @@
int main(int argc, char **argv)
{
Q_INIT_RESOURCE(undo);
+#ifdef Q_OS_ANDROID
+ QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
QApplication app(argc, argv);