gui: Move static placeholder texts to forms #17702

pull laanwj wants to merge 2 commits into bitcoin:master from laanwj:2019_12_qt_placeholders changing 8 files +14 −7
  1. laanwj commented at 10:22 AM on December 9, 2019: member

    There was an issue around the time of Qt 4.6 when placeholder text was introduced, that caused a compile failure when it was specified in the form.

    As a workaround the placeholder texts were moved to the code.

    Qt 4 hasn't been relevant to us for ages. So move all (non-parametrized) placeholder texts to the form files instead.

    It's better to keep this kind of text content together. Translate/no-translate status is kept as it is.

    Proof that they still work: win1

    win2

    win3

    win4

  2. gui: Move static placeholder texts to forms
    There was an issue around the time of Qt 4.6 when placeholder text was
    introduced, that caused a compile failure when it was specified in the
    form.
    
    As a workaround the placeholder texts were moved to the code.
    
    Qt 4 hasn't been relevant to us for ages. So move all (non-parametrized)
    placeholder texts to the form files instead.
    
    It's better to keep this kind of text content together. Makes sure
    translate/no-translate status is kept as it is.
    67f36e0b2c
  3. laanwj added the label GUI on Dec 9, 2019
  4. in src/qt/forms/sendcoinsentry.ui:148 in 67f36e0b2c outdated
     143 | @@ -144,6 +144,9 @@
     144 |        <property name="toolTip">
     145 |         <string>Enter a label for this address to add it to the list of used addresses</string>
     146 |        </property>
     147 | +      <property name="placeholderText">
     148 | +       <string>Enter a label for this address to add it to your address book</string>
    


    laanwj commented at 10:24 AM on December 9, 2019:

    It's kind of strange to have the same thing worded in two different ways here. We might want to change this message to "Enter a label for this address to add it to the list of used addresses" as well (I think that's preferred to "address book"?). If people agree I'll do this in a new commit.


    hebasto commented at 11:14 AM on December 9, 2019:

    If people agree I'll do this in a new commit.

    Yes, please.


    laanwj commented at 11:30 AM on December 9, 2019:

    thx, done

  5. DrahtBot commented at 10:52 AM on December 9, 2019: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #15768 (gui: Add close window shortcut by IPGlider)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  6. promag commented at 11:18 AM on December 9, 2019: member

    Concept ACK.

  7. qt: Normalize placeholder to avoid using "address book" in sendcoinsentry a652dc5521
  8. hebasto approved
  9. hebasto commented at 11:29 AM on December 9, 2019: member

    ACK 67f36e0b2ce0f99b90578e7e1dd9e0624026bcfa, I have reviewed the code and it looks OK, I agree it can be merged.

    Verified that other objects which use QLineEdit::setPlaceholderText() method have no corresponding *.ui forms.

  10. hebasto commented at 11:33 AM on December 9, 2019: member

    Re-ACK a652dc5521e2caf5734ffb797c7f2fc80685fef1, tooltip and placeholderText are identical now.

  11. fanquake approved
  12. fanquake commented at 3:03 PM on December 9, 2019: member

    ACK a652dc5521e2caf5734ffb797c7f2fc80685fef1 - checked that placeholder text still appears.

    uri

  13. KaosGhostNINJA approved
  14. MarcoFalke commented at 6:50 PM on December 9, 2019: member

    Typed make translated and verified that the translations still work and exist.

    ACK a652dc5521e2caf5734ffb797c7f2fc80685fef1 🚿

    <details><summary>Show signature and timestamp</summary>

    Signature:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    ACK a652dc5521e2caf5734ffb797c7f2fc80685fef1 🚿
    -----BEGIN PGP SIGNATURE-----
    
    iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
    pUgRiwwAw9cEXQKjQhNBOoI6jWuiup9tN+ZlstBfwFGUAHo2XFBoswA31k1poJOV
    5AWVMk4dWRjlXqpwNGSUwl8elHGnvbEyaKJOHR5b5i2/Jed3LvmOvs+sWyxVVnYl
    SAS+dD4iZG6CiWKA1WD6QEIFhBgVwTjIIlwrF1QDyu/EWrqI0T7JsbYW42VfBTfv
    laPyGDkSw2DG7xLMHAfYNs1d+uY6x5oEd81XIdgvwxXenQKErBYfBmir6IpPjXIa
    1ABSuHwqouEGN3MpuNYZX8zjbilKCkA3Ej7pBpcpcuCHQcXRBuQxKDkjpiuR9UPd
    IVv38ZiPRKGLlpj2CxrhZJACgjf6I2fyPZ5ea0yzLI0iyp51hQigQ3m5SBrkVx2m
    NiQ4uEmskPD8pej3IKyj1INwEX5shFAVDRw1TcToR6w32DjOWGJfi5JQ+ieTNLuI
    SsmUGRZfCsREcSaTdtwvRM9BnoNyKsDQyK+tP0EfmyWevy2F39C76CwSvDQIEvMT
    ziCMwOUJ
    =3B7n
    -----END PGP SIGNATURE-----
    

    Timestamp of file with hash 1861b0f77d9a81d6407df8c3c7977e8b6bac8fa9dd0213dd982576c78ef08c68 -

    </details>

  15. MarcoFalke referenced this in commit 03e781ff4f on Dec 9, 2019
  16. MarcoFalke merged this on Dec 9, 2019
  17. MarcoFalke closed this on Dec 9, 2019

  18. sidhujag referenced this in commit f8c607616b on Dec 9, 2019
  19. MarkLTZ referenced this in commit a1ee73769d on Dec 11, 2019
  20. jasonbcox referenced this in commit a2fd053f65 on Nov 6, 2020
  21. sidhujag referenced this in commit 628ef9f7a9 on Nov 10, 2020
  22. MarcoFalke locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me