revisions for SailfishOS

This commit is contained in:
pls.153 2023-10-18 21:02:46 +02:00
parent a7c7b4d27f
commit d553e5f305
14 changed files with 20 additions and 14 deletions

View file

@ -27,7 +27,7 @@ QMAKE_EXTRA_COMPILERS += lisp
win32: PRE_TARGETDEPS = tmp/app.lib
!win32: PRE_TARGETDEPS = tmp/libapp.a
QT += quick qml
QT += quick qml quickcontrols2
TEMPLATE = app
CONFIG += c++17 no_keywords release
DEFINES += DESKTOP_APP INI_LISP INI_ECL_CONTRIB

View file

@ -27,7 +27,7 @@ QMAKE_EXTRA_COMPILERS += lisp
win32: PRE_TARGETDEPS = tmp/app.lib
!win32: PRE_TARGETDEPS = tmp/libapp.a
QT += quick qml
QT += quick qml quickcontrols2
TEMPLATE = app
CONFIG += c++17 no_keywords release
DEFINES = DESKTOP_APP INI_LISP

View file

@ -27,7 +27,7 @@ QMAKE_EXTRA_COMPILERS += lisp
win32: PRE_TARGETDEPS = tmp/app.lib
!win32: PRE_TARGETDEPS = tmp/libapp.a
QT += quick qml multimedia
QT += quick qml quickcontrols2 multimedia
TEMPLATE = app
CONFIG += c++17 no_keywords release
DEFINES += DESKTOP_APP INI_LISP INI_ECL_CONTRIB QT_EXTENSION

View file

@ -27,7 +27,7 @@ QMAKE_EXTRA_COMPILERS += lisp
win32: PRE_TARGETDEPS = tmp/app.lib
!win32: PRE_TARGETDEPS = tmp/libapp.a
QT += quick qml
QT += quick qml quickcontrols2
TEMPLATE = app
CONFIG += c++17 no_keywords release
DEFINES += DESKTOP_APP INI_LISP INI_ASDF INI_ECL_CONTRIB QT_EXTENSION

View file

@ -27,7 +27,7 @@ QMAKE_EXTRA_COMPILERS += lisp
win32: PRE_TARGETDEPS = tmp/app.lib
!win32: PRE_TARGETDEPS = tmp/libapp.a
QT += quick qml websockets webview
QT += quick qml quickcontrols2 websockets webview
TEMPLATE = app
CONFIG += c++17 no_keywords release
DEFINES += DESKTOP_APP INI_LISP INI_ECL_CONTRIB INI_ASDF INI_WEBVIEW

View file

@ -27,7 +27,7 @@ QMAKE_EXTRA_COMPILERS += lisp
win32: PRE_TARGETDEPS = tmp/app.lib
!win32: PRE_TARGETDEPS = tmp/libapp.a
QT += quick qml bluetooth sql location
QT += quick qml quickcontrols2 bluetooth sql location
TEMPLATE = app
CONFIG += c++17 no_keywords release
DEFINES += DESKTOP_APP BACKGROUND_INI_LISP INI_ECL_CONTRIB QT_EXTENSION

View file

@ -27,7 +27,7 @@ QMAKE_EXTRA_COMPILERS += lisp
win32: PRE_TARGETDEPS = tmp/app.lib
!win32: PRE_TARGETDEPS = tmp/libapp.a
QT += quick qml
QT += quick qml quickcontrols2
TEMPLATE = app
CONFIG += c++17 no_keywords release
DEFINES += DESKTOP_APP INI_LISP INI_ECL_CONTRIB

View file

@ -27,7 +27,7 @@ QMAKE_EXTRA_COMPILERS += lisp
win32: PRE_TARGETDEPS = tmp/app.lib
!win32: PRE_TARGETDEPS = tmp/libapp.a
QT += quick qml
QT += quick qml quickcontrols2
TEMPLATE = app
CONFIG += c++17 no_keywords release
DEFINES = DESKTOP_APP INI_LISP

View file

@ -28,7 +28,7 @@ QMAKE_EXTRA_COMPILERS += lisp
win32: PRE_TARGETDEPS = tmp/app.lib
!win32: PRE_TARGETDEPS = tmp/libapp.a
QT += quick qml positioning
QT += quick qml quickcontrols2 positioning
TEMPLATE = app
CONFIG += c++17 no_keywords release
DEFINES = DESKTOP_APP INI_LISP #INI_ECL_CONTRIB

View file

@ -25,7 +25,7 @@ QMAKE_EXTRA_COMPILERS += lisp
win32: PRE_TARGETDEPS = tmp/app.lib
!win32: PRE_TARGETDEPS = tmp/libapp.a
QT += quick qml
QT += quick qml quickcontrols2
TEMPLATE = app
CONFIG += c++17 no_keywords release
DEFINES = DESKTOP_APP INI_LISP

View file

@ -45,9 +45,8 @@ Run `qt-runner` without arguments to check the following settings:
- "Override DPI": set to 2/3 of max value, e.g. 458 * 2/3 = 305 (on my phone)
- select "Reduce window when keyboard is shown"
- set variable `QT_QUICK_CONTROLS_STYLE` to something neutral like `default`
(the original `breeze` style setting doesn't work with lqml)
- apply changes (top right)
Remember to apply the changes (top right).
Now you should be able to build/install lqml using `qmake` from above
installation. Note that you always need to start the apps using `qt-runner`:

View file

@ -76,6 +76,9 @@ On Sailfish it runs using **Qt5.15** and **qt-runner**, so it's not really
the only feasible way to run it on that platform, see
[readme-sailfish](readme-sailfish.md).
*(Needless to say, this is - by far - the nicest experience you can have
developing for mobile.)*
Known issues
------------

View file

@ -9,6 +9,7 @@
#include <QtQml/QQmlEngine>
#include <QtQml/QQmlFileSelector>
#include <QtQuick/QQuickView>
#include <QtQuickControls2/QQuickStyle>
#include <iostream>
#ifdef INI_WEBVIEW
@ -68,6 +69,9 @@ int main(int argc, char* argv[]) {
#ifdef NO_TEXT_HANDLES
qputenv("QT_QPA_NO_TEXT_HANDLES", "1");
#endif
if (QFile::exists("/etc/sailfish-release")) { // SFOS
QQuickStyle::setStyle("Basic");
}
#ifdef INI_WEBVIEW
QtWebView::initialize();
#endif

View file

@ -1,4 +1,4 @@
QT += quick qml
QT += quick qml quickcontrols2
TEMPLATE = app
CONFIG += c++17 no_keywords release
INCLUDEPATH = /usr/local/include