summaryrefslogtreecommitdiff
path: root/data
diff options
authorZygmunt Krynicki <zygmunt.krynicki@canonical.com>2014-04-07 18:49:50 +0200
committerZygmunt Krynicki <zygmunt.krynicki@canonical.com>2014-04-07 18:49:50 +0200
commit5d35acf20a0438118fae10c9b1e7fda0694657c1 (patch)
tree019a51081b3cd826d339c4969c4799444ab53868 /data
parent8fb4d9726afba0205e21620a7cd8de56244a72ff (diff)
providers:checkbox: fix graphics/screen-resolution
This job was accessing $CHECKBOX_SHARE/scripts/resolution_test.qml. The qml file was not executable and thus would not be installed or discovered as an executable. This patch moves the qml file to the data/ directory and updates the job to refer to it with $PLAINBOX_PROVIDER_DATA/ Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Diffstat (limited to 'data')
-rw-r--r--data/resolution_test.qml37
1 files changed, 37 insertions, 0 deletions
diff --git a/data/resolution_test.qml b/data/resolution_test.qml
new file mode 100644
index 0000000..b718bd0
--- /dev/null
+++ b/data/resolution_test.qml
@@ -0,0 +1,37 @@
+/*
+ * This file is part of Checkbox.
+ *
+ * Copyright 2013 Canonical Ltd.
+ * Written by:
+ * Sylvain Pineau <sylvain.pineau@canonical.com>
+ *
+ * Checkbox is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3,
+ * as published by the Free Software Foundation.
+ *
+ * Checkbox is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+import QtQuick 2.0
+import QtQuick.Window 2.0
+
+Rectangle {
+ border.color: "lime"
+ border.width: 15
+ color: "transparent"
+ Text {
+ anchors.centerIn: parent
+ text: Screen.width + " x " + Screen.height
+ font.bold: true
+ font.pointSize: 80
+ color: "lime"
+ smooth: true
+ }
+}
+