summaryrefslogtreecommitdiffstats
path: root/sip/qt/qvariant.sip
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2022-07-29 12:36:09 +0000
committerSlávek Banko <slavek.banko@axis.cz>2022-07-31 16:43:31 +0200
commit30381ed7e532384067ad63b4631950d821313199 (patch)
tree88fc97a0997db6456391b72c4df8345a46ae627d /sip/qt/qvariant.sip
parent4978511ebb7e8d31dab64485d1ac87b6e004be81 (diff)
downloadpytqt-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/qvariant.sip')
-rw-r--r--sip/qt/qvariant.sip42
1 files changed, 0 insertions, 42 deletions
diff --git a/sip/qt/qvariant.sip b/sip/qt/qvariant.sip
index 36d9eca..a340cca 100644
--- a/sip/qt/qvariant.sip
+++ b/sip/qt/qvariant.sip
@@ -193,8 +193,6 @@ Not yet implemented.
%End
-%If (TQt_2_1_0 -)
-
class TQVariant
{
%TypeHeaderCode
@@ -228,24 +226,16 @@ public:
Region,
Bitmap,
Cursor,
-%If (TQt_2_2_0 -)
SizePolicy,
-%End
-%If (TQt_3_0_0 -)
Date,
Time,
DateTime,
ByteArray,
BitArray,
KeySequence,
-%End
-%If (TQt_3_1_0 -)
Pen,
-%End
-%If (TQt_3_2_0 -)
LongLong,
ULongLong,
-%End
};
TQVariant();
@@ -271,48 +261,34 @@ public:
TQVariant(const TQRegion &);
TQVariant(const TQBitmap &);
TQVariant(const TQCursor &);
-%If (TQt_3_0_0 -)
TQVariant(const TQDate &);
TQVariant(const TQTime &);
TQVariant(const TQDateTime &);
TQVariant(const TQByteArray &);
// TQVariant(const TQBitArray &);
-%End
// TQVariant(const TQValueList<TQVariant> &);
// TQVariant(const TQMap<TQString,TQVariant> &);
TQVariant(int /Constrained/);
// TQVariant(uint);
-%If (TQt_3_2_0 -)
// TQVariant(TQ_LLONG);
// TQVariant(TQ_ULLONG);
-%End
TQVariant(bool,int);
TQVariant(double);
-%If (TQt_2_2_0 -)
TQVariant(TQSizePolicy);
-%End
-%If (TQt_3_0_0 -)
// This must appear after the TQString, int and double ctors because
// each of those can be converted automatically to a TQKeySequence and
// we want those to take precedence.
TQVariant(const TQKeySequence &);
-%End
-%If (TQt_3_1_0 -)
TQVariant(const TQPen &);
-%End
Type type() const;
const char* typeName() const;
bool canCast(Type) const;
-%If (TQt_3_0_0 -)
bool cast(Type);
-%End
bool isValid() const;
-%If (TQt_3_1_0 -)
bool isNull() const;
-%End
void clear();
@@ -334,30 +310,22 @@ public:
const TQBitmap toBitmap() const;
const TQRegion toRegion() const;
const TQCursor toCursor() const;
-%If (TQt_3_0_0 -)
const TQDate toDate() const;
const TQTime toTime() const;
const TQDateTime toDateTime() const;
const TQByteArray toByteArray() const;
// const TQBitArray toBitArray() const;
const TQKeySequence toKeySequence() const;
-%End
-%If (TQt_3_1_0 -)
const TQPen toPen() const;
-%End
int toInt() const;
uint toUInt() const;
-%If (TQt_3_2_0 -)
// TQ_LLONG toLongLong(bool * = 0) const;
// TQ_ULLONG toULongLong( bool * = 0) const;
-%End
bool toBool() const;
double toDouble() const;
// const TQValueList<TQVariant> toList() const;
// const TQMap<TQString,TQVariant> toMap() const;
-%If (TQt_2_2_0 -)
TQSizePolicy toSizePolicy() const;
-%End
// TQValueListConstIterator<TQVariant> listBegin() const;
// TQValueListConstIterator<TQVariant> listEnd() const;
@@ -385,30 +353,22 @@ public:
TQBitmap & asBitmap();
TQRegion & asRegion();
TQCursor & asCursor();
-%If (TQt_3_0_0 -)
TQDate & asDate();
TQTime & asTime();
TQDateTime & asDateTime();
TQByteArray & asByteArray();
// TQBitArray & asBitArray();
TQKeySequence & asKeySequence();
-%End
-%If (TQt_3_1_0 -)
TQPen & asPen();
-%End
// int & asInt();
// uint & asUInt();
-%If (TQt_3_2_0 -)
// TQ_LLONG & asLongLong();
// TQ_ULLONG & asULongLong();
-%End
// bool & asBool();
// double & asDouble();
// TQValueList<TQVariant> & asList();
// TQMap<TQString,TQVariant> & asMap();
-%If (TQt_2_2_0 -)
TQSizePolicy & asSizePolicy();
-%End
void load(TQDataStream &);
void save(TQDataStream &) const;
@@ -416,5 +376,3 @@ public:
static const char *typeToName(Type);
static Type nameToType(const char *);
};
-
-%End