From 33a0297b35ab40e2d09cf37e351095b58725c8d5 Mon Sep 17 00:00:00 2001 From: aneejit1 Date: Fri, 29 Jul 2022 12:36:09 +0000 Subject: Remove support for earlier Qt/TQt versions Conditional code in the .sip files linked to specific older versions has been removed. Since the versions of TQt and python-tqt are running in parallel, the support for older versions was clutter that would never actually be used now. Signed-off-by: aneejit1 --- sip/qt/qfontmetrics.sip | 53 ------------------------------------------------- 1 file changed, 53 deletions(-) (limited to 'sip/qt/qfontmetrics.sip') diff --git a/sip/qt/qfontmetrics.sip b/sip/qt/qfontmetrics.sip index 9ab3d89..18e5b4e 100644 --- a/sip/qt/qfontmetrics.sip +++ b/sip/qt/qfontmetrics.sip @@ -61,9 +61,7 @@ class TQFontMetrics public: TQFontMetrics(const TQFont &); -%If (TQt_3_2_0 -) TQFontMetrics(const TQFont &,TQFont::Script); -%End TQFontMetrics(const TQFontMetrics &); int ascent() const; @@ -74,60 +72,12 @@ public: int minLeftBearing() const; int minRightBearing() const; int maxWidth() const; -%If (- TQt_2_00) - bool inFont(char) const; - int leftBearing(char) const; - int rightBearing(char) const; - int width(const char *,int = -1) const; - int width(char) const; - TQRect boundingRect(const char *,int = -1) const; - TQRect boundingRect(char) const; - - TQRect boundingRect(int,int,int,int,int,const char *,int = -1, - SIP_PYLIST /AllowNone/ = 0) const; -%MethodCode - int *tabarray; - - if (intListToArray(a8,&tabarray) < 0) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipRes = new TQRect(sipCpp -> TQFontMetrics::boundingRect(a0,a1,a2,a3,a4,a5,a6,a7,tabarray)); - Py_END_ALLOW_THREADS - - if (tabarray) - sipFree((void *)tabarray); - } -%End - - TQSize size(int,const char *,int = -1,int = 0, - SIP_PYLIST /AllowNone/ = 0) const; -%MethodCode - int *tabarray; - - if (intListToArray(a4,&tabarray) < 0) - sipIsErr = 1; - else - { - Py_BEGIN_ALLOW_THREADS - sipRes = new TQSize(sipCpp -> TQFontMetrics::size(a0,a1,a2,a3,tabarray)); - Py_END_ALLOW_THREADS - - if (tabarray) - sipFree((void *)tabarray); - } -%End -%End -%If (TQt_2_00 -) bool inFont(TQChar) const; int leftBearing(TQChar) const; int rightBearing(TQChar) const; int width(const TQString &,int = -1) const; int width(TQChar) const; -%If (TQt_3_0_0 -) int charWidth(const TQString &,int) const; -%End TQRect boundingRect(const TQString &,int = -1) const; TQRect boundingRect(TQChar) const; @@ -165,13 +115,10 @@ public: if (tabarray) sipFree((void *)tabarray); } -%End %End int underlinePos() const; -%If (TQt_3_2_0 -) int overlinePos() const; -%End int strikeOutPos() const; int lineWidth() const; -- cgit v1.2.1