Only small changes

This commit is contained in:
Scharel Clemens 2020-08-22 11:28:31 +02:00
parent f3b5bbd30d
commit 2a47f51366
7 changed files with 41 additions and 24 deletions

View file

@ -26,6 +26,7 @@ SOURCES += src/harbour-nextcloudnotes.cpp \
src/notesmodel.cpp src/notesmodel.cpp
DISTFILES += qml/harbour-nextcloudnotes.qml \ DISTFILES += qml/harbour-nextcloudnotes.qml \
icons/icon-launcher-nextcloudnotes.svg \
qml/cover/CoverPage.qml \ qml/cover/CoverPage.qml \
qml/img/nextcloud-logo-dark.png \ qml/img/nextcloud-logo-dark.png \
qml/img/nextcloud-logo-light.png \ qml/img/nextcloud-logo-light.png \

View file

@ -17,6 +17,10 @@ Page {
title: qsTr("About") title: qsTr("About")
} }
SectionHeader {
text: qsTr("Debug")
visible: debug
}
Label { Label {
id: debugModeLabel id: debugModeLabel
x: Theme.horizontalPageMargin x: Theme.horizontalPageMargin
@ -32,7 +36,9 @@ Page {
SectionHeader { SectionHeader {
text: "Nextcloud " + qsTr("Notes") + " v" + Qt.application.version text: "Nextcloud " + qsTr("Notes") + " v" + Qt.application.version
} }
Icon {
source: Qt.resolvedUrl("../../icons/icon-launcher-nextcloudnotes.svg")
}
LinkedLabel { LinkedLabel {
id: nextcloudnotesLabel id: nextcloudnotesLabel
x: Theme.horizontalPageMargin x: Theme.horizontalPageMargin
@ -43,7 +49,6 @@ Page {
//: Post-Showdown Github link //: Post-Showdown Github link
qsTr(".") + "</p>" qsTr(".") + "</p>"
} }
Button { Button {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("MIT License") text: qsTr("MIT License")
@ -53,7 +58,6 @@ Page {
SectionHeader { SectionHeader {
text: "ShowdownJS" text: "ShowdownJS"
} }
LinkedLabel { LinkedLabel {
id: showdownLabel id: showdownLabel
x: Theme.horizontalPageMargin x: Theme.horizontalPageMargin
@ -64,7 +68,6 @@ Page {
qsTr("to convert Markdown to HTML.") + "</p>" + qsTr("to convert Markdown to HTML.") + "</p>" +
"<p> " + qsTr("Showdown 1.x is released under GPL 2.0.") + "</p>" "<p> " + qsTr("Showdown 1.x is released under GPL 2.0.") + "</p>"
} }
Button { Button {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("GPL 2.0 License") text: qsTr("GPL 2.0 License")

View file

@ -143,7 +143,7 @@ void NotesModel::setAccount(const QString& account) {
} }
endRemoveRows(); endRemoveRows();
beginInsertRows(QModelIndex(), 0, rowCount() - 1); beginInsertRows(QModelIndex(), 0, rowCount() - 1);
qDebug() << rowCount() << " notes in account"; qDebug() << rowCount() << "local notes in account";
endInsertRows(); endInsertRows();
} }
/* /*

View file

@ -59,6 +59,10 @@
<source>This app is released under the MIT license.</source> <source>This app is released under the MIT license.</source>
<translation>Diese App wurde unter der MIT Lizenz veröffentlicht.</translation> <translation>Diese App wurde unter der MIT Lizenz veröffentlicht.</translation>
</message> </message>
<message>
<source>Debug</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>

View file

@ -59,6 +59,10 @@
<source>This app is released under the MIT license.</source> <source>This app is released under the MIT license.</source>
<translation>Denna app är släppt under MIT-licensen.</translation> <translation>Denna app är släppt under MIT-licensen.</translation>
</message> </message>
<message>
<source>Debug</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>CoverPage</name> <name>CoverPage</name>

View file

@ -9,66 +9,71 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="25"/> <location filename="../qml/pages/AboutPage.qml" line="21"/>
<source>Debug</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/AboutPage.qml" line="29"/>
<source>The app is running in DEBUG mode!</source> <source>The app is running in DEBUG mode!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="33"/> <location filename="../qml/pages/AboutPage.qml" line="37"/>
<source>Notes</source> <source>Notes</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="40"/> <location filename="../qml/pages/AboutPage.qml" line="46"/>
<source>This app is released under the MIT license.</source> <source>This app is released under the MIT license.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="42"/> <location filename="../qml/pages/AboutPage.qml" line="48"/>
<source>The source code is available on</source> <source>The source code is available on</source>
<extracomment>Pre-Showdown Github link</extracomment> <extracomment>Pre-Showdown Github link</extracomment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="44"/> <location filename="../qml/pages/AboutPage.qml" line="50"/>
<source>.</source> <source>.</source>
<extracomment>Post-Showdown Github link</extracomment> <extracomment>Post-Showdown Github link</extracomment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="49"/> <location filename="../qml/pages/AboutPage.qml" line="54"/>
<source>MIT License</source> <source>MIT License</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="62"/> <location filename="../qml/pages/AboutPage.qml" line="66"/>
<source>This app uses</source> <source>This app uses</source>
<extracomment>Pre-Showdown Github link</extracomment> <extracomment>Pre-Showdown Github link</extracomment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="64"/> <location filename="../qml/pages/AboutPage.qml" line="68"/>
<source>to convert Markdown to HTML.</source> <source>to convert Markdown to HTML.</source>
<extracomment>Post-Showdown Github link</extracomment> <extracomment>Post-Showdown Github link</extracomment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="65"/> <location filename="../qml/pages/AboutPage.qml" line="69"/>
<source>Showdown 1.x is released under GPL 2.0.</source> <source>Showdown 1.x is released under GPL 2.0.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="70"/> <location filename="../qml/pages/AboutPage.qml" line="73"/>
<source>GPL 2.0 License</source> <source>GPL 2.0 License</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="77"/> <location filename="../qml/pages/AboutPage.qml" line="80"/>
<source>Nextcloud Notes</source> <source>Nextcloud Notes</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../qml/pages/AboutPage.qml" line="78"/> <location filename="../qml/pages/AboutPage.qml" line="81"/>
<source>for Sailfish OS</source> <source>for Sailfish OS</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -316,32 +321,32 @@
<context> <context>
<name>NotesApi</name> <name>NotesApi</name>
<message> <message>
<location filename="../src/notesapi.cpp" line="327"/> <location filename="../src/notesapi.cpp" line="330"/>
<source>No error</source> <source>No error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/notesapi.cpp" line="330"/> <location filename="../src/notesapi.cpp" line="333"/>
<source>No network connection available</source> <source>No network connection available</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/notesapi.cpp" line="333"/> <location filename="../src/notesapi.cpp" line="336"/>
<source>Failed to communicate with the Nextcloud server</source> <source>Failed to communicate with the Nextcloud server</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/notesapi.cpp" line="336"/> <location filename="../src/notesapi.cpp" line="339"/>
<source>An error occured while establishing an encrypted connection</source> <source>An error occured while establishing an encrypted connection</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/notesapi.cpp" line="339"/> <location filename="../src/notesapi.cpp" line="342"/>
<source>Could not authenticate to the Nextcloud instance</source> <source>Could not authenticate to the Nextcloud instance</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/notesapi.cpp" line="342"/> <location filename="../src/notesapi.cpp" line="345"/>
<source>Unknown error</source> <source>Unknown error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>