26

Re: deprecated fix patch files

warning: ‘typename Container::const_iterator qUpperBound(const Container&, const T&) [with Container = QList<double>; T = double; typename Container::const_iterator = QList<double>::const_iterator]’ is deprecated: Use std::upper_bound [-Wdeprecated-declarations]

-3 issues Qt -> C++ (should be ok, no version differences)

Post's attachments

Attachment icon 0001-fix-deprecated-warning-qUpperBound.patch 1.11 kb, 245 downloads since 2020-06-07 

27 (edited by De-Backer 2020-06-07 10:23:11)

Re: deprecated fix patch files

attempt 2 for deprecated warning QList::swap(int i, int j)

scorpio810 wrote:

I had to revert it
https://git.tuxfamily.org/qet/qet.git/c … e91882a445

Edit : ok I understood, I use Qt version 5.12.5 and this function was introduced in Qt 5.13.

*fix deprecated warning QList::swap(int i, int j)

Post's attachments

Attachment icon 0001-fix-deprecated-warning-QList-swap-attempt-2.patch 1.4 kb, 221 downloads since 2020-06-07 

28

Re: deprecated fix patch files

* fix_deprecated_QModelIndex
warning: ‘QModelIndex QModelIndex::child(int, int) const’ is deprecated: Use QAbstractItemModel::index [-Wdeprecated-declarations]

-11 issues

Post's attachments

Attachment icon 0001-fix-deprecated-warning-QModelIndex-child.patch 3.97 kb, 242 downloads since 2020-06-07 

29

Re: deprecated fix patch files

scorpio810 wrote:

I tried "0001-fix-deprecated-Wdeprecated-copy.patch" is reduce warnings 50 to 6, but I don't know if I can push it?
First patch in attached patch reduce warnings 50 -> ~20.

i think this is the answer, use default default constructor (does only shallow copy).

Post's attachments

Attachment icon 0001-remove-user-defined-copy-constructor.patch 4.07 kb, 209 downloads since 2020-06-07 

30

Re: deprecated fix patch files

Thanks Simon.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

31

Re: deprecated fix patch files

De-Backer wrote:

warning: ‘QSet<T> QList<T>::toSet() const [with T = IndependentTextItem*]’ is deprecated:
Use QSet<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations]

-5 issues  for QT 5.14

don't forget

32

Re: deprecated fix patch files

last patch:

QAbstractTableModel explicitly initialized in copy constructor

warning: base class ‘class QAbstractTableModel’
should be explicitly initialized in the copy constructor [-Wextra]

Post's attachments

Attachment icon 0001-QAbstractTableModel-explicitly-initialized-in-copy-c.patch 1.27 kb, 231 downloads since 2020-06-08 

33

Re: deprecated fix patch files

Thanks Simon.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !