QDialog: be more specific on how to replace deprecated functions
QDialog::setOrientation/setExtension() was marked as deprecated without a suggestion on how to replace those functions. Therefore add a suggestion (taken from the documentation) now. Change-Id: I13b2af2264064ca1c7c034cf6b920caaadcee113 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
e8cb52f035
commit
905e40abb4
@ -70,10 +70,10 @@ public:
|
||||
void setVisible(bool visible) override;
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 13)
|
||||
QT_DEPRECATED void setOrientation(Qt::Orientation orientation);
|
||||
QT_DEPRECATED Qt::Orientation orientation() const;
|
||||
QT_DEPRECATED void setExtension(QWidget* extension);
|
||||
QT_DEPRECATED QWidget* extension() const;
|
||||
QT_DEPRECATED_X("Use show/hide on the affected widget instead") void setOrientation(Qt::Orientation orientation);
|
||||
QT_DEPRECATED_X("Use show/hide on the affected widget instead") Qt::Orientation orientation() const;
|
||||
QT_DEPRECATED_X("Use show/hide on the affected widget instead") void setExtension(QWidget* extension);
|
||||
QT_DEPRECATED_X("Use show/hide on the affected widget instead") QWidget* extension() const;
|
||||
#endif
|
||||
|
||||
QSize sizeHint() const override;
|
||||
@ -98,7 +98,7 @@ public Q_SLOTS:
|
||||
virtual void reject();
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 13)
|
||||
QT_DEPRECATED void showExtension(bool);
|
||||
QT_DEPRECATED_X("Use show/hide on the affected widget instead") void showExtension(bool);
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user