Spam detection software, running on the system "mx.qt-project.org",
has identified this incoming email as possible spam.  The original
message has been attached to this so you can view it or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  Hi, QPushButton::sizeHint() has ``` bool showButtonBoxIcons
   = qobject_cast<QDialogButtonBox*>(parentWidget()) && 
style()->styleHint(QStyle::SH_DialogButtonBox_ButtonsHaveIcons);
   [...] 

Content analysis details:   (4.0 points, 4.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
-0.0 BAYES_20               BODY: Bayes spam probability is 5 to 20%
                            [score: 0.0625]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail 
provider
                            (rjvbertin[at]gmail.com)
-0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                            [209.85.221.48 listed in wl.mailspike.net]
 0.1 PLING_QUERY            Subject has exclamation mark and question mark
 2.2 SPOOFED_FREEMAIL       No description available.
 1.3 SUBJ_OBFU_PUNCT_MANY   Punctuation-obfuscated Subject: header
 0.4 SUBJ_OBFU_PUNCT_FEW    Possible punctuation-obfuscated Subject: header


--- Begin Message ---
Hi,

QPushButton::sizeHint() has

```
    bool showButtonBoxIcons = qobject_cast<QDialogButtonBox*>(parentWidget())
                          && 
style()->styleHint(QStyle::SH_DialogButtonBox_ButtonsHaveIcons);

    if (!icon().isNull() || showButtonBoxIcons) {
        // do something with the icon
    }
```

I don't understand the logic, what's the point in reserving space for an 
invalid/empty icon?

I stumbled across this when trying to understand why 
SH_DialogButtonBox_ButtonsHaveIcons is being ignored by the Fusion style.

R.

--- End Message ---
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to