Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Qt] Replace deprecated Qt methods #1357

Merged

Conversation

Fuzzbawls
Copy link
Collaborator

qSort, qStableSort, qLowerBound, and qUpperBound have been
marked as deprecated since Qt 5.2.

Also, QSslSocket::setDefaultCaCertificates() and QSslSocket::systemCaCertificates()
member functions are obsolete as of Qt 5.12

This PR replaces the former with their std:: equivalents, and the latter
with QSslConfiguration equivalents.

Changes maintain backwards compatibility with Qt 5.5.1

`qSort`, `qStableSort`, `qLowerBound`, and `qUpperBound` have been
marked as deprecated since Qt 5.2.

Also, `QSslSocket::setDefaultCaCertificates()` and `QSslSocket::systemCaCertificates()`
member functions are obsolete as of Qt 5.12

This PR replaces the former with their `std::` equivalents, and the latter
with `QSslConfiguration` equivalents.

Changes maintain backwards compatibility with Qt 5.5.1
@Fuzzbawls Fuzzbawls added this to the 4.1.0 milestone Feb 25, 2020
@Fuzzbawls Fuzzbawls self-assigned this Feb 25, 2020
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 96b4732

Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 96b4732

@furszy furszy merged commit 85497fe into PIVX-Project:master Mar 2, 2020
random-zebra added a commit that referenced this pull request Jul 9, 2020
8231881 Use proper enum or nullptr for qFlags (Fuzzbawls)
1621ceb Replace more deprecated qt methods (Fuzzbawls)

Pull request description:

  Follow up to #1357, this eliminates compiler warnings for Qt versions up-to and including 5.14.

  - qSort
  - screenGeometry
  - ByteSize
  - QSignalMapper
  - qFlags improper enum

  Also removes the unused old splashscreen files.

  Note: new compiler warnings about deprecation appear in Qt 5.15, but will need to handle them later as their replacement functions/suggestions aren't supported by Qt 5.9, which is our minimum supported version.

ACKs for top commit:
  furszy:
    utACK 8231881
  random-zebra:
    utACK 8231881 and merging...

Tree-SHA512: 21941836d8406e5a9f73f1897d06137ff60495278cab90300da27c42c814ff82eaec5fe57364a60d06d742b35842b4e16739c098c5e66a7dd3f591ecf052f1fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants