communi / libcommuni

A cross-platform IRC framework for Qt
https://communi.github.io
BSD 3-Clause "New" or "Revised" License
84 stars 37 forks source link

src: Use errorOccurred instead of error signal #115

Open Nerixyz opened 1 year ago

Nerixyz commented 1 year ago

The QAbstractSocket::errorOccurred signal was marked as obsolete in Qt 5.15, and removed in Qt 6. The QAbstractSocket::errorOccurred signal should be used instead.

This PR adds a check that uses the new signal if the Qt version is 5.15 and up.

Thaodan commented 1 year ago

Please follow the existing commits message layout.

Nerixyz commented 1 year ago

Please follow the existing commits message layout.

I updated it.