aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2015-11-10 16:41:48 +0100
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-11-13 10:33:35 +0000
commit62287bed3e74cd1a8a60361a7e753e1291a8cad6 (patch)
treedac2ad5b0ce54ac274d831060e18d6522a166ce4 /tests
parent68f68563c5d33ec32781ae89b222c063fb7089c4 (diff)
Scale testbench automatically
Change-Id: Ie362fa22b3280733783e7ec2293a98e737717257 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/testbench/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/manual/testbench/main.cpp b/tests/manual/testbench/main.cpp
index e1b65585..56af4941 100644
--- a/tests/manual/testbench/main.cpp
+++ b/tests/manual/testbench/main.cpp
@@ -43,11 +43,13 @@
int main(int argc, char *argv[])
{
+ QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+
QGuiApplication app(argc, argv);
// These must be set before running.
// TODO: move style selection into app UI and use settings to save choices.
- // qsetenv("QT_FILE_SELECTORS", "material");
+ // qsetenv("QT_QUICK_FILE_SELECTORS", "material");
// qsetenv("QT_LABS_CONTROLS_STYLE", "material");
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));