From 843b40328610c5e61bd7cada03c2046ece788b02 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sat, 20 Jun 2020 20:06:25 +0200 Subject: [PATCH] QTextOption: remove deprecated function QTextOption::tabStop() Change-Id: I7d647088aacb83d16c3e3cc4d831162a95771083 Reviewed-by: Volker Hilsheimer --- src/gui/text/qtextoption.cpp | 24 +----------------------- src/gui/text/qtextoption.h | 10 ---------- 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/src/gui/text/qtextoption.cpp b/src/gui/text/qtextoption.cpp index 2568d3642b..59b75d6a26 100644 --- a/src/gui/text/qtextoption.cpp +++ b/src/gui/text/qtextoption.cpp @@ -324,28 +324,6 @@ QList QTextOption::tabs() const \sa flags() */ -#if QT_DEPRECATED_SINCE(5, 10) -/*! - \fn qreal QTextOption::tabStop() const - \deprecated in Qt 5.10. Use tabStopDistance() instead. - - Returns the distance in device units between tab stops. - Convenient function for the above method - - \sa setTabStopDistance(), tabArray(), setTabs(), tabs() -*/ - -/*! - \fn void QTextOption::setTabStop(qreal tabStop) - \deprecated in Qt 5.10. Use setTabStopDistance() instead. - - Sets the default distance in device units between tab stops to the value specified - by \a tabStop. - - \sa tabStopDistance(), setTabArray(), setTabs(), tabs() -*/ -#endif - /*! \fn qreal QTextOption::tabStopDistance() const \since 5.10 @@ -442,7 +420,7 @@ QList QTextOption::tabs() const \fn QList QTextOption::tabs() const Returns a list of tab positions defined for the text layout. - \sa tabStopDistance(), setTabs(), setTabStop() + \sa tabStopDistance(), setTabs(), setTabStopDistance() */ diff --git a/src/gui/text/qtextoption.h b/src/gui/text/qtextoption.h index 52d253af1b..51e255e6f2 100644 --- a/src/gui/text/qtextoption.h +++ b/src/gui/text/qtextoption.h @@ -115,11 +115,6 @@ public: inline void setFlags(Flags flags); inline Flags flags() const { return Flags(f); } -#if QT_DEPRECATED_SINCE(5, 10) - QT_DEPRECATED inline void setTabStop(qreal tabStop); - QT_DEPRECATED inline qreal tabStop() const { return tabStopDistance(); } -#endif - inline void setTabStopDistance(qreal tabStopDistance); inline qreal tabStopDistance() const { return tab; } @@ -151,11 +146,6 @@ inline void QTextOption::setAlignment(Qt::Alignment aalignment) inline void QTextOption::setFlags(Flags aflags) { f = aflags; } -#if QT_DEPRECATED_SINCE(5, 10) -inline void QTextOption::setTabStop(qreal atabStop) -{ setTabStopDistance(atabStop); } -#endif - inline void QTextOption::setTabStopDistance(qreal atabStop) { tab = atabStop; }