diff --git a/src/main.cpp b/src/main.cpp index 5b4e6cee52eb8b6400f3c9803c6d6aa0e8d706b6..6ee1f7abae0ba899f5b73ad7c7af455f1ed2540a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,6 +62,8 @@ bool resetConfig; int main(int argc, char *argv[]) { + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + #if defined (Q_OS_ANDROID) qputenv("QT_ANDROID_VOLUME_KEYS", "1"); // Handle volume keys by Qt, lock native Android behavior @@ -69,7 +71,7 @@ int main(int argc, char *argv[]) logFile = Tandroid::getExternalPath() + QStringLiteral("/nootka-log.txt"); if (QFile::exists(logFile)) QFile::remove(logFile); - qInstallMessageHandler(myMessageOutput); + qInstallMessageHandler(myMessageOutput); qDebug() << "==== NOOTKA LOG =======\n" << QDateTime::currentDateTime().toString(); #endif diff --git a/src/nootka.qrc b/src/nootka.qrc index 593fad6784c1308312b795460d2b463850e31f7d..ec61afd5706d6012dd8b536c3b2e3b0de87d3d96 100644 --- a/src/nootka.qrc +++ b/src/nootka.qrc @@ -3,6 +3,7 @@ <file alias="MainWindow.qml">qml/MainWindow.qml</file> <file alias="MainMenu.qml">qml/MainMenu.qml</file> <file alias="+android/MainMenu.qml">qml/+android/MainMenuMobile.qml</file> +<!-- <file alias="+linux/MainMenu.qml">qml/+android/MainMenuMobile.qml</file> --> <file alias="TtoolBar.qml">qml/TtoolBar.qml</file> <file alias="NootkaLabel.qml">qml/NootkaLabel.qml</file> <file alias="MainScore.qml">qml/MainScore.qml</file> @@ -48,5 +49,8 @@ <file alias="fakeTrans.js">qml/shared/fakeTrans.js</file> + <file alias="qtquickcontrols2.conf">qml/qtquickcontrols2.conf</file> + <file alias="+android/qtquickcontrols2.conf">qml/+android/qtquickcontrols2.conf</file> + </qresource> </RCC> diff --git a/src/qml/MainWindow.qml b/src/qml/MainWindow.qml index fa15bcf008742be2174011d182999d0afd4a4237..4bdfe4bcdf38c5c5de43f6bd0a79a6c645aef59d 100644 --- a/src/qml/MainWindow.qml +++ b/src/qml/MainWindow.qml @@ -118,8 +118,12 @@ ApplicationWindow { DialogLoader { id: dialogLoader } -// Component.onCompleted: { -// } + Component.onCompleted: { + randNotes() + randNotes() + randNotes() + randNotes() + } // Timer { // interval: 5000