Skip to content
/ qTox Public
forked from TokTok/qTox

Commit

Permalink
feat(Login): Add a tooltip and WhatsThis for the password field.
Browse files Browse the repository at this point in the history
This explains that passwords are optional, local, can't be recovered,
and aren't sent to servers.

Fixes TokTok#299.
  • Loading branch information
iphydf committed Jan 2, 2025
1 parent 779cdb3 commit de5198c
Show file tree
Hide file tree
Showing 51 changed files with 525 additions and 17 deletions.
42 changes: 25 additions & 17 deletions src/loginscreen.ui
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@
<item>
<layout class="QFormLayout" name="formLayout">
<property name="sizeConstraint">
<enum>QLayout::SetMaximumSize</enum>
<enum>QLayout::SizeConstraint::SetMaximumSize</enum>
</property>
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
<enum>QFormLayout::FieldGrowthPolicy::AllNonFixedFieldsGrow</enum>
</property>
<property name="labelAlignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignVCenter</set>
</property>
<property name="formAlignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
<property name="horizontalSpacing">
<number>9</number>
Expand All @@ -108,7 +108,7 @@
<string>Username:</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
Expand All @@ -128,12 +128,20 @@
<string>Password:</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="PasswordEdit" name="newPass">
<property name="toolTip">
<string>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</string>
</property>
<property name="whatsThis">
<string>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it's local to your computer only. qTox developers won't be able to recover your password if lost.</string>
</property>
<property name="accessibleDescription">
<string>Password input field, you can leave it empty (no password), or type at least 6 characters</string>
</property>
Expand All @@ -145,7 +153,7 @@
<string>Confirm:</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
Expand All @@ -171,7 +179,7 @@
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand All @@ -196,7 +204,7 @@
<item row="8" column="0" colspan="2">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand All @@ -209,7 +217,7 @@
<item row="0" column="0" colspan="2">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand Down Expand Up @@ -274,7 +282,7 @@
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand All @@ -290,7 +298,7 @@
<string>Username:</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
Expand All @@ -310,7 +318,7 @@
<string>Password:</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
Expand All @@ -337,7 +345,7 @@
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand All @@ -362,7 +370,7 @@
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand Down Expand Up @@ -404,10 +412,10 @@
</rect>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
<enum>QFrame::Shadow::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
<widget class="QPushButton" name="newProfilePgbtn">
Expand Down
10 changes: 10 additions & 0 deletions translations/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,16 @@ Please make sure to enter the same password twice.</source>
<translation type="unfinished">كلمات المرور التي أدخلتها مختلفة.
يرجى التأكد من إدخال نفس كلمة المرور مرتين.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/be.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,16 @@ Please make sure to enter the same password twice.</source>
<translation type="unfinished">Паролі, якія вы ўвялі, розныя.
Пераканайцеся, што вы ўвялі адзін і той жа пароль двойчы.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/bg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,16 @@ Please make sure to enter the same password twice.</source>
<translation>Въведените пароли са различни.
Уверете се, че сте въвели една и съща парола два пъти.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/bn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,16 @@ Please make sure to enter the same password twice.</source>
<translation type="unfinished">আপনার দেওয়া পাসওয়ার্ডগুলি আলাদা।
অনুগ্রহ করে একই পাসওয়ার্ড দুবার প্রবেশ করানো নিশ্চিত করুন।</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1671,6 +1671,16 @@ Please make sure to enter the same password twice.</source>
<translation>Hesla se neschodují.
Ujistěte se, že zadáváte stejné heslo dvakrát.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/da.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,16 @@ Please make sure to enter the same password twice.</source>
<translation type="unfinished">De adgangskoder, du har indtastet, er forskellige.
Sørg for at indtaste den samme adgangskode to gange.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,16 @@ Please make sure to enter the same password twice.</source>
<translation>Die Passwörter stimmen nicht überein.
Bitte gib in beide Felder das gleiche Passwort ein.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,16 @@ Please make sure to enter the same password twice.</source>
<translation type="unfinished">Οι κωδικοί πρόσβασης που έχετε εισάγει είναι διαφορετικοί.
Βεβαιωθείτε ότι έχετε εισάγει τον ίδιο κωδικό πρόσβασης δύο φορές.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/eo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,16 @@ Please make sure to enter the same password twice.</source>
<translation type="unfinished">La pasvortoj, kiujn vi enigis, estas malsamaj.
Bonvolu certigi enigi la saman pasvorton dufoje.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,16 @@ Please make sure to enter the same password twice.</source>
<translation>Las contraseñas ingresadas no coinciden.
Verifica que sean la misma en ambos recuadros.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/et.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,16 @@ Please make sure to enter the same password twice.</source>
<translation>Sinu sisestatud salasõnad on erinevad.
Palun vaata, et sa mõlemal korral sisestad sama salasõna.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/fa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,16 @@ Please make sure to enter the same password twice.</source>
<translation type="unfinished">رمزهایی که وارد کرده اید متفاوت است.
لطفاً مطمئن شوید که رمز عبور یکسان را دو بار وارد کنید.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/fi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,16 @@ Please make sure to enter the same password twice.</source>
<translation>Syöttämäsi salasanat ovat erilaisia.
Varmista, että syötät saman salasanan kahdesti.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
10 changes: 10 additions & 0 deletions translations/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,16 @@ Please make sure to enter the same password twice.</source>
<translation>Les mots de passe que vous avez saisis sont différents.
Veuillez vous assurer d&apos;entrer deux fois le même mot de passe.</translation>
</message>
<message>
<source>This optional password is used to encrypt local message data and profile.
If you lose this password, there is no way to recover it.
Press Shift+F1 for more information.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The password you enter here is optional and encrypts message data and your Tox secret key. It does not encrypt files received. Your profile data is never sent to any servers. This is not a remote login, it&apos;s local to your computer only. qTox developers won&apos;t be able to recover your password if lost.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
Expand Down
Loading

0 comments on commit de5198c

Please sign in to comment.