0.5.1: il campo Password nelle Impostazioni mostra/nasconde il testo (PasswordField + showEchoModeToggle)

This commit is contained in:
2026-10-05 14:42:20 +02:00
parent e0347c8051
commit 218ea4b424
3 changed files with 10 additions and 5 deletions
+3 -2
View File
@@ -43,13 +43,14 @@ Page {
onTextChanged: appSettings.username = text onTextChanged: appSettings.username = text
} }
TextField { PasswordField {
id: passField id: passField
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
label: qsTr("Password") label: qsTr("Password")
text: appSettings.password text: appSettings.password
echoMode: TextInput.Password // Icona nativa per mostrare/nascondere il testo digitato
showEchoModeToggle: true
onTextChanged: appSettings.password = text onTextChanged: appSettings.password = text
} }
+5 -1
View File
@@ -1,6 +1,6 @@
Name: harbour-calibreweb Name: harbour-calibreweb
Summary: Client OPDS per Calibre Web Summary: Client OPDS per Calibre Web
Version: 0.5.0 Version: 0.5.1
Release: 1 Release: 1
Group: Qt/Qt Group: Qt/Qt
License: MIT License: MIT
@@ -24,6 +24,10 @@ reflow del testo, margini configurabili e posizione salvata
in locale. in locale.
%changelog %changelog
* Mon Oct 05 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.5.1-1
- Impostazioni: il campo Password e' un PasswordField con
showEchoModeToggle, quindi l'icona nel campo mostra/nasconde il
testo digitato (nessuna nuova stringa da tradurre)
* Mon Sep 07 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.5.0-1 * Mon Sep 07 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.5.0-1
- Nuovo motore di lettura: PagedTextItem (QQuickPaintedItem + QTextDocument, - Nuovo motore di lettura: PagedTextItem (QQuickPaintedItem + QTextDocument,
pattern di harbour-books) impagina il capitolo in pagine misurate dal layout. pattern di harbour-books) impagina il capitolo in pagine misurate dal layout.
+2 -2
View File
@@ -24,7 +24,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
app->setOrganizationName(QStringLiteral("harbour")); app->setOrganizationName(QStringLiteral("harbour"));
app->setApplicationName(QStringLiteral("calibreweb")); app->setApplicationName(QStringLiteral("calibreweb"));
// versione mostrata nelle impostazioni (tenere allineata allo spec) // versione mostrata nelle impostazioni (tenere allineata allo spec)
app->setApplicationVersion(QStringLiteral("0.5.0")); app->setApplicationVersion(QStringLiteral("0.5.1"));
Settings settings; Settings settings;
@@ -58,7 +58,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QQuickView *view = SailfishApp::createView(); QQuickView *view = SailfishApp::createView();
qDebug() << "harbour-calibreweb v0.5.0 build" << __DATE__ << __TIME__; qDebug() << "harbour-calibreweb v0.5.1 build" << __DATE__ << __TIME__;
qmlRegisterType<EpubBook>("harbour.calibreweb", 1, 0, "EpubBook"); qmlRegisterType<EpubBook>("harbour.calibreweb", 1, 0, "EpubBook");
qmlRegisterType<PagedTextItem>("harbour.calibreweb", 1, 0, "PagedTextItem"); qmlRegisterType<PagedTextItem>("harbour.calibreweb", 1, 0, "PagedTextItem");