.hadk.env
export MER_ROOT="$HOME/mer"
export ANDROID_ROOT="$MER_ROOT/android/droid"
export VENDOR="OnePlus"
export DEVICE="onyx"
export PORT_ARCH="armv7hl"
Apply this to /usr/share/jolla-camera/pages/capture/CaptureView.qml | |
EDIT: Setting this to 0, backend makes optimal selection for framerate | |
http://doc.qt.io/qt-5/qcameraviewfindersettings.html#setMaximumFrameRate | |
diff --git a/CaptureView.qml b/CaptureView.qml | |
index 3ee90bb..df03e68 100644 | |
--- a/CaptureView.qml | |
+++ b/CaptureView.qml |
keymaps 0-2,4-5,8,12 | |
keycode 1 = Escape Escape | |
alt keycode 1 = Meta_Escape | |
keycode 2 = one exclam | |
alt keycode 2 = Meta_one | |
keycode 3 = two at at nul nul Meta_two | |
keycode 4 = three numbersign | |
control keycode 4 = Escape | |
alt keycode 4 = Meta_three | |
keycode 5 = four dollar dollar Control_backslash |
Column { | |
property var raw: ["apples", "oranges", "pears", "kissa", "koira", "ei", "vain", "hedelmiä", "ananas"] | |
Component.onCompleted: | |
{ | |
for (var i=0 ; i<Math.min(3, raw.length) ; i++) | |
lm.append({ name: raw[i] }) | |
} | |
ListModel | |
{ |
import QtQuick 2.0 | |
import Sailfish.Silica 1.0 | |
Timer | |
{ | |
id: thistimer | |
property var callback | |
property var delay |
... | |
system(echo "\\\{\\\"version\\\":\\\"$${SPECVERSION}\\\"\\\}" > qml/version.json) | |
... |
cma_lwm=128 | |
cma_hwm=384 | |
cma_offline_start=64 | |
lcd_rotate=2 | |
dtoverlay=rpi-ft5406 |
dbus-monitor --system "type=signal, interface=org.freedesktop.DBus.Properties, member=PropertiesChanged" | | |
while read -r line; | |
do | |
if echo $line | grep "TOHID" > /dev/null | |
then | |
read -r idline | |
if echo $idline | grep "string" > /dev/null | |
then | |
echo $idline | cut -d "\"" -f 2 | |
fi |
Page | |
{ | |
property bool inputVisible: Qt.inputMethod.visible | |
onInputVisibleChanged: console.log("vis changed " + inputVisible); | |
TextArea | |
{ | |
anchors.centerIn: parent | |
width: parent.width | |
focus: true |
Page { | |
id: page | |
SilicaWebView { | |
url: "https://www.messenger.com/login" | |
width: parent.width | |
height: parent.height / 2 | |
} | |
} |