diff options
author | aneejit1 <aneejit1@gmail.com> | 2022-07-29 12:36:09 +0000 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-07-31 16:43:31 +0200 |
commit | 30381ed7e532384067ad63b4631950d821313199 (patch) | |
tree | 88fc97a0997db6456391b72c4df8345a46ae627d /sip/qt/qfontmetrics.sip | |
parent | 4978511ebb7e8d31dab64485d1ac87b6e004be81 (diff) | |
download | pytqt-30381ed7e532384067ad63b4631950d821313199.tar.gz pytqt-30381ed7e532384067ad63b4631950d821313199.zip |
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 <aneejit1@gmail.com>
(cherry picked from commit 33a0297b35ab40e2d09cf37e351095b58725c8d5)
Diffstat (limited to 'sip/qt/qfontmetrics.sip')
-rw-r--r-- | sip/qt/qfontmetrics.sip | 53 |
1 files changed, 0 insertions, 53 deletions
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; @@ -166,12 +116,9 @@ public: sipFree((void *)tabarray); } %End -%End int underlinePos() const; -%If (TQt_3_2_0 -) int overlinePos() const; -%End int strikeOutPos() const; int lineWidth() const; |