Fixed deprecation warnings

Authored by nmel on May 28 2020, 7:12 AM.

Description

Fixed deprecation warnings

Fixed all the warnings generated by Qt-5.14.2 + GCC-9.3.0 setup
to restore the clean build.

Examples of the warnings:

  • ‘QList QSet::toList() const [with T = QUrl]’ is deprecated: Use values() instead. [-Wdeprecated-declarations]
  • ‘QSet QList::toSet() const [with T = QUrl]’ is deprecated: Use QSet(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
  • ‘static QSet QSet::fromList(const QList&) [with T = QString]’ is deprecated: Use QSet(list.begin(), list.end()) instead. [-Wdeprecated-declarations]
  • implicitly-declared ‘FilterSettings::FilterSettings(const FilterSettings&)’ is deprecated [-Wdeprecated-copy]
  • ‘int QTime::elapsed() const’ is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]
  • ‘void QTime::start()’ is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]
  • ‘void QTextEdit::setTabStopWidth(int)’ is deprecated [-Wdeprecated-declarations]

Discussion: https://invent.kde.org/utilities/krusader/-/merge_requests/7

Merged Changes

CommitAuthorDetailsCommitted
9afc4938283anmel
added setTabStopDistance fallback for Qt versions < 5.10 
May 28 2020
606df181cd29nmel
replaced deprecated QSet<T>::toList 
May 25 2020
9ba3c190563cnmel
fixed copy constructors in the FilterSettings and nested classes 
May 25 2020
392a471b479dnmel
replaced deprecated setTabStopWidth with setTabStopDistance 
May 25 2020
52ec194ee0b5nmel
fixed deprecated QTime usage 
May 25 2020
6f3f749cbf00nmel
replaced deprecated QSet<T>::toList and QSet<T> constructor 
May 25 2020
78cf62888322nmel
fixed deprecated QTime usage 
May 25 2020
f493377bad6anmel
replaced deprecated QSet<T>::fromList 
May 25 2020
3013d1c6a7e0nmel
fixed deprecated QTime usage 
May 24 2020