mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
revisions
This commit is contained in:
parent
38f04c691c
commit
b7adf74b36
4 changed files with 7 additions and 10 deletions
|
|
@ -38,12 +38,12 @@
|
|||
(qrun*
|
||||
(unless (x:empty-string query)
|
||||
(q> |text| ui:*query-text* (string-trim '(#\Newline) query)))
|
||||
(q> |text| ui:*query-input* " ") ; hack 1 (see 'QueryDialog.qml')
|
||||
(q! |clear| ui:*query-input*)
|
||||
(wait-while-transition)
|
||||
(push-dialog :query)
|
||||
(q! |forceActiveFocus| ui:*query-input*)
|
||||
(q! |showKeyboard| ui:*main* t) ; needed on recursive calls
|
||||
(qsingle-shot 250 (lambda () (q! |clear| ui:*query-input*))) ; hack 2 (see 'QueryDialog.qml')
|
||||
(qsingle-shot 500 (lambda () (q! |positionViewAtEnd| ui:*output*)))
|
||||
(wait-for-closed)
|
||||
(qlater (lambda () (editor:ensure-focus :show)))
|
||||
(q< |text| ui:*query-input*)))
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
<manifest package="org.eql5.android.repl" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0.67" android:versionCode="129" android:installLocation="auto">
|
||||
<manifest package="org.eql5.android.repl" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0.67" android:versionCode="130" android:installLocation="auto">
|
||||
<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
|
||||
Remove the comment if you do not require these default permissions. -->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
|
|
|
|||
|
|
@ -35,8 +35,6 @@ Popup {
|
|||
Lisp.call("dialogs:exited")
|
||||
Lisp.call("editor:ensure-output-visible")
|
||||
}
|
||||
|
||||
onTextChanged: if (length === 0) main.ensureOutputVisible() // hack (see 'dialogs.lisp')
|
||||
}
|
||||
|
||||
Text {
|
||||
|
|
|
|||
|
|
@ -23,11 +23,10 @@ StackView {
|
|||
return (h === 0) ? main.height : h
|
||||
}
|
||||
|
||||
function divideHeight(factor) { return (availableHeight() - rectCommand.height) * factor }
|
||||
function isLandscape() { return (Screen.primaryOrientation === Qt.LandscapeOrientation) }
|
||||
function keyboardVisible() { return Qt.inputMethod.visible }
|
||||
function showKeyboard(show) { show ? Qt.inputMethod.show() : Qt.inputMethod.hide() }
|
||||
function ensureOutputVisible() { output.positionViewAtEnd() }
|
||||
function divideHeight(factor) { return (availableHeight() - rectCommand.height) * factor }
|
||||
function isLandscape() { return (Screen.primaryOrientation === Qt.LandscapeOrientation) }
|
||||
function keyboardVisible() { return Qt.inputMethod.visible }
|
||||
function showKeyboard(show) { show ? Qt.inputMethod.show() : Qt.inputMethod.hide() }
|
||||
|
||||
// show/hide dialogs
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue