diff options
author | aneejit1 <[email protected]> | 2022-07-29 12:36:09 +0000 |
---|---|---|
committer | aneejit1 <[email protected]> | 2022-07-30 17:54:15 +0000 |
commit | 33a0297b35ab40e2d09cf37e351095b58725c8d5 (patch) | |
tree | 7eb6d8c710dcb638f2ac00776a3f523311e19c50 /sip/qt/qdragobject.sip | |
parent | e602246539fd7435aaeb440fcb7f852c92c8426b (diff) | |
download | pytqt-33a0297b35ab40e2d09cf37e351095b58725c8d5.tar.gz pytqt-33a0297b35ab40e2d09cf37e351095b58725c8d5.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 <[email protected]>
Diffstat (limited to 'sip/qt/qdragobject.sip')
-rw-r--r-- | sip/qt/qdragobject.sip | 144 |
1 files changed, 0 insertions, 144 deletions
diff --git a/sip/qt/qdragobject.sip b/sip/qt/qdragobject.sip index fbd5e29..da9e266 100644 --- a/sip/qt/qdragobject.sip +++ b/sip/qt/qdragobject.sip @@ -67,44 +67,6 @@ %End -%If (- TQt_2_00) - -class TQDragObject : TQObject -{ -%TypeHeaderCode -#include <tqdragobject.h> -%End - -public: - enum DragMode { - DragDefault, - DragCopy, - DragMove, - DragCopyOrMove - }; - - TQDragObject(TQWidget * /TransferThis/ = 0,const char * = 0); - - bool drag(); - bool dragMove(); - void dragCopy(); - virtual bool provides(const char *) const; - virtual const char *format(int) const = 0; - virtual TQByteArray encodedData(const char *) const = 0; - void setPixmap(TQPixmap); - void setPixmap(TQPixmap,TQPoint); - TQPixmap pixmap() const; - TQPoint pixmapHotSpot() const; - TQWidget *source(); - -protected: - virtual bool drag(DragMode); -}; - -%End - -%If (TQt_2_00 -) - class TQDragObject : TQObject, TQMimeSource { %TypeHeaderCode @@ -118,17 +80,10 @@ public: bool drag(); bool dragMove(); void dragCopy(); -%If (TQt_3_0_0 -) void dragLink(); -%End virtual void setPixmap(TQPixmap); -%If (- TQt_3_0_0) - virtual void setPixmap(TQPixmap,TQPoint); -%End -%If (TQt_3_0_0 -) virtual void setPixmap(TQPixmap,const TQPoint &); -%End TQPixmap pixmap() const; TQPoint pixmapHotSpot() const; %End @@ -139,15 +94,6 @@ public: static void setTarget(TQWidget *); %If (TQt_DRAGANDDROP) -%If (- TQt_3_0_0) - enum DragMode { - DragDefault, - DragCopy, - DragMove, - DragCopyOrMove - }; -%End -%If (TQt_3_0_0 -) enum DragMode { DragDefault, DragCopy, @@ -156,7 +102,6 @@ public: DragCopyOrMove }; %End -%End protected: %If (TQt_DRAGANDDROP) @@ -164,13 +109,9 @@ protected: %End private: -%If (TQt_3_1_0 -) TQDragObject(const TQDragObject &); -%End }; -%End - class TQStoredDrag : TQDragObject { @@ -181,44 +122,16 @@ class TQStoredDrag : TQDragObject public: TQStoredDrag(const char *,TQWidget * /TransferThis/ = 0,const char * = 0); -%If (- TQt_2_00) - void setEncodedData(const TQByteArray&); -%End -%If (TQt_2_00 -) virtual void setEncodedData(const TQByteArray&); -%End const char *format(int) const; virtual TQByteArray encodedData(const char *) const; private: -%If (TQt_3_1_0 -) TQStoredDrag(const TQStoredDrag &); -%End }; -%If (- TQt_2_00) - -class TQTextDrag : TQStoredDrag -{ -%TypeHeaderCode -#include <tqdragobject.h> -%End - -public: - TQTextDrag(const char *,TQWidget * /TransferThis/ = 0,const char * = 0); - TQTextDrag(TQWidget * /TransferThis/ = 0,const char * = 0); - - void setText(const char *); - static bool canDecode(TQDragMoveEvent *); - static bool decode(TQDropEvent *,TQString &); -}; - -%End - -%If (TQt_2_00 -) - class TQTextDrag : TQDragObject { %TypeHeaderCode @@ -241,13 +154,9 @@ public: static bool decode(const TQMimeSource *,TQString &,TQCString &); private: -%If (TQt_3_1_0 -) TQTextDrag(const TQTextDrag &); -%End }; -%End - class TQImageDrag : TQDragObject { @@ -259,56 +168,19 @@ public: TQImageDrag(TQImage,TQWidget * /TransferThis/ = 0,const char * = 0); TQImageDrag(TQWidget * /TransferThis/ = 0,const char * = 0); -%If (- TQt_2_00) - void setImage(TQImage); -%End -%If (TQt_2_00 -) virtual void setImage(TQImage); -%End const char *format(int) const; virtual TQByteArray encodedData(const char *) const; -%If (- TQt_2_00) - static bool canDecode(TQDragMoveEvent *); - static bool decode(TQDropEvent *,TQImage &); - static bool decode(TQDropEvent *,TQPixmap &); -%End -%If (TQt_2_00 -) static bool canDecode(const TQMimeSource *); static bool decode(const TQMimeSource *,TQImage &); static bool decode(const TQMimeSource *,TQPixmap &); -%End private: -%If (TQt_3_1_0 -) TQImageDrag(const TQImageDrag &); -%End -}; - - -%If (- TQt_2_00) - -class TQUrlDrag : TQStoredDrag -{ -%TypeHeaderCode -#include <tqdragobject.h> -%End - -public: - TQUrlDrag(TQStrList,TQWidget * /TransferThis/ = 0,const char * = 0); - TQUrlDrag(TQWidget * /TransferThis/ = 0,const char * = 0); - - void setUrls(TQStrList); - static TQString urlToLocalFile(const char *); - static bool canDecode(TQDragMoveEvent *); - static bool decode(TQDropEvent *,TQStrList &); - static bool decodeLocalFiles(TQDropEvent *,TQStrList &); }; -%End - -%If (TQt_2_00 -) class TQUriDrag : TQStoredDrag { @@ -320,14 +192,8 @@ public: TQUriDrag(TQStrList,TQWidget * /TransferThis/ = 0,const char * = 0); TQUriDrag(TQWidget * /TransferThis/ = 0,const char * = 0); -%If (- TQt_3_0_0) - void setFilenames(TQStringList); - void setUnicodeUris(TQStringList); -%End -%If (TQt_3_0_0 -) void setFileNames(const TQStringList &); void setUnicodeUris(const TQStringList &); -%End virtual void setUris(TQStrList); static TQString uriToLocalFile(const char *); @@ -340,15 +206,9 @@ public: static bool decodeLocalFiles(const TQMimeSource *,TQStringList &); private: -%If (TQt_3_1_0 -) TQUriDrag(const TQUriDrag &); -%End }; -%End - - -%If (TQt_2_1_0 -) class TQColorDrag : TQStoredDrag { @@ -367,9 +227,5 @@ public: static bool decode(TQMimeSource *,TQColor &); private: -%If (TQt_3_1_0 -) TQColorDrag(const TQColorDrag &); -%End }; - -%End |