diff --git a/harbour-nextcloudnotes.pro b/harbour-nextcloudnotes.pro index 19193b4..eff014d 100644 --- a/harbour-nextcloudnotes.pro +++ b/harbour-nextcloudnotes.pro @@ -1,53 +1,54 @@ -# NOTICE: -# -# Application name defined in TARGET has a corresponding QML filename. -# If name defined in TARGET is changed, the following needs to be done -# to match new name: -# - corresponding QML filename must be changed -# - desktop icon filename must be changed -# - desktop filename must be changed -# - icon definition filename in desktop file must be changed -# - translation filenames have to be changed - -# The name of your application -TARGET = harbour-nextcloudnotes - -CONFIG += sailfishapp - -DEFINES += APP_VERSION=\\\"$$VERSION\\\" - -SOURCES += src/harbour-nextcloudnotes.cpp - -DISTFILES += qml/harbour-nextcloudnotes.qml \ - qml/cover/CoverPage.qml \ - rpm/harbour-nextcloudnotes.changes.run.in \ - rpm/harbour-nextcloudnotes.changes \ - rpm/harbour-nextcloudnotes.spec \ - rpm/harbour-nextcloudnotes.yaml \ - translations/*.ts \ - harbour-nextcloudnotes.desktop \ - qml/pages/NotePage.qml \ - qml/pages/NotesPage.qml \ - qml/pages/LoginDialog.qml \ - qml/pages/EditPage.qml \ - qml/pages/SettingsPage.qml \ - qml/pages/AboutPage.qml \ - qml/pages/UnencryptedDialog.qml \ - qml/pages/NotesApi.qml \ - qml/pages/MITLicense.qml \ - qml/pages/GPLLicense.qml - -SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172 - -# to disable building translations every time, comment out the -# following CONFIG line -CONFIG += sailfishapp_i18n - -# German translation is enabled as an example. If you aren't -# planning to localize your app, remember to comment out the -# following TRANSLATIONS line. And also do not forget to -# modify the localized app name in the the .desktop file. -TRANSLATIONS += translations/harbour-nextcloudnotes-de.ts \ - translations/harbour-nextcloudnotes-sv.ts - -HEADERS += +# NOTICE: +# +# Application name defined in TARGET has a corresponding QML filename. +# If name defined in TARGET is changed, the following needs to be done +# to match new name: +# - corresponding QML filename must be changed +# - desktop icon filename must be changed +# - desktop filename must be changed +# - icon definition filename in desktop file must be changed +# - translation filenames have to be changed + +# The name of your application +TARGET = harbour-nextcloudnotes + +CONFIG += sailfishapp + +DEFINES += APP_VERSION=\\\"$$VERSION\\\" + +SOURCES += src/harbour-nextcloudnotes.cpp + +DISTFILES += qml/harbour-nextcloudnotes.qml \ + qml/cover/CoverPage.qml \ + rpm/harbour-nextcloudnotes.changes.run.in \ + rpm/harbour-nextcloudnotes.changes \ + rpm/harbour-nextcloudnotes.spec \ + rpm/harbour-nextcloudnotes.yaml \ + translations/*.ts \ + harbour-nextcloudnotes.desktop \ + qml/pages/NotePage.qml \ + qml/pages/NotesPage.qml \ + qml/pages/LoginDialog.qml \ + qml/pages/EditPage.qml \ + qml/pages/SettingsPage.qml \ + qml/pages/AboutPage.qml \ + qml/pages/UnencryptedDialog.qml \ + qml/pages/NotesApi.qml \ + qml/pages/MITLicense.qml \ + qml/pages/GPLLicense.qml \ + qml/pages/SyntaxPage.qml + +SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172 + +# to disable building translations every time, comment out the +# following CONFIG line +CONFIG += sailfishapp_i18n + +# German translation is enabled as an example. If you aren't +# planning to localize your app, remember to comment out the +# following TRANSLATIONS line. And also do not forget to +# modify the localized app name in the the .desktop file. +TRANSLATIONS += translations/harbour-nextcloudnotes-de.ts \ + translations/harbour-nextcloudnotes-sv.ts + +HEADERS += diff --git a/qml/pages/EditPage.qml b/qml/pages/EditPage.qml index cb50613..756da73 100644 --- a/qml/pages/EditPage.qml +++ b/qml/pages/EditPage.qml @@ -33,7 +33,7 @@ Dialog { } MenuItem { text: qsTr("Markdown syntax") - onClicked: Qt.openUrlExternally("https://github.com/showdownjs/showdown/wiki/Showdown's-Markdown-syntax") + onClicked: pageStack.push(Qt.resolvedUrl("SyntaxPage.qml")) //Qt.openUrlExternally("https://github.com/showdownjs/showdown/wiki/Showdown's-Markdown-syntax") } } diff --git a/qml/pages/NotePage.qml b/qml/pages/NotePage.qml index b35a00b..59a7a2b 100644 --- a/qml/pages/NotePage.qml +++ b/qml/pages/NotePage.qml @@ -47,20 +47,23 @@ Dialog { convertedText = convertedText.replace(/^
)?\[ \] (.*)(<.*)$/gmi, function(match, p1, p2, p3, offset) { occurence++ - return '
)?\[[xX]\] (.*)(<.*)$/gmi, function(match, p1, p2, p3, offset) { occurence++ - return '