diff options
author | John Fultz <jfultz@wolfram.com> | 2019-07-19 12:05:36 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2019-07-19 12:05:36 -0500 |
commit | b6654916b426574a4f576d3511f21a85377746f9 (patch) | |
tree | a29c5d92541f1e0c6b418445a18d2f917d760ce8 /quacker/quacker.h | |
parent | 595735c6fa5c9ed837151947e6ba1fbfdcd3190c (diff) |
Fix deprecation errors for Qt 5.13.
Most are Qt4-isms, except where noted.
* Replaced QFontMetrics::width with QFontMetrics::horizontalAdvance,
conditionally as the latter wasn't even introduced until Qt 5.11.
* QColor::light and dark instead of QColor::light and dark.
* QString() instead of QString::null.
* std::sort instead of qSort
* QTreeWidgetItem::setSelected instead of QTreeWidget::setItemSelected.
* QFileDialog::setOption(QFileDialog::DontConfirmOverwrite) instead
of QFileDialog::setConfirmOverwrite(false).
* QDrag::exec instead of QDrag::start.
Diffstat (limited to 'quacker/quacker.h')
-rw-r--r-- | quacker/quacker.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quacker/quacker.h b/quacker/quacker.h index 646e823..b56b91b 100644 --- a/quacker/quacker.h +++ b/quacker/quacker.h @@ -205,7 +205,7 @@ protected slots: // update history views when a new position is added void updateHistoryViews(); - void setCaption(const QString &text = QString::null); + void setCaption(const QString &text = QString()); void setModified(bool modified); // main timer |