summaryrefslogtreecommitdiffstats
path: root/sip/qt/qdialog.sip
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2022-07-29 12:36:09 +0000
committeraneejit1 <aneejit1@gmail.com>2022-07-30 17:54:15 +0000
commit33a0297b35ab40e2d09cf37e351095b58725c8d5 (patch)
tree7eb6d8c710dcb638f2ac00776a3f523311e19c50 /sip/qt/qdialog.sip
parente602246539fd7435aaeb440fcb7f852c92c8426b (diff)
downloadpytqt-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 <aneejit1@gmail.com>
Diffstat (limited to 'sip/qt/qdialog.sip')
-rw-r--r--sip/qt/qdialog.sip39
1 files changed, 0 insertions, 39 deletions
diff --git a/sip/qt/qdialog.sip b/sip/qt/qdialog.sip
index ac78030..aa26196 100644
--- a/sip/qt/qdialog.sip
+++ b/sip/qt/qdialog.sip
@@ -54,31 +54,10 @@ public:
Accepted
};
-%If (- TQt_3_0_0)
- int exec() /PyName=exec_loop, ReleaseGIL,
- PreHook=__pyTQtPreEventLoopHook__,
- PostHook=__pyTQtPostEventLoopHook__/;
-%MethodCode
- // Transfer ownership back to Python (a modal dialog will
- // probably have the main window as it's parent). This means
- // the TQt dialog will be deleted when the Python wrapper is
- // garbage collected. Although this is a little inconsistent,
- // it saves having to code it explicitly to avoid the memory
- // leak.
- sipTransferBack(sipSelf);
-
- Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp->TQDialog::exec();
- Py_END_ALLOW_THREADS
-%End
-%End
-
int result() const;
void show();
-%If (TQt_2_00 -)
void hide();
-%End
void move(int,int);
void move(const TQPoint &);
void resize(int,int);
@@ -86,7 +65,6 @@ public:
void setGeometry(int,int,int,int);
void setGeometry(const TQRect &);
-%If (TQt_2_2_0 -)
void setOrientation(Orientation);
Orientation orientation() const;
@@ -98,15 +76,11 @@ public:
void setSizeGripEnabled(bool);
bool isSizeGripEnabled() const;
-%End
-%If (TQt_3_2_0 -)
void setModal(bool);
bool isModal() const;
-%End
public slots:
-%If (TQt_3_0_0 -)
int exec() /PyName=exec_loop, ReleaseGIL,
PreHook=__pyTQtPreEventLoopHook__,
PostHook=__pyTQtPostEventLoopHook__/;
@@ -123,35 +97,22 @@ public slots:
sipRes = sipCpp->TQDialog::exec();
Py_END_ALLOW_THREADS
%End
-%End
protected slots:
virtual void done(int);
-%If (- TQt_2_00)
- void accept();
- void reject();
-%End
-%If (TQt_2_00 -)
virtual void accept();
virtual void reject();
-%End
-%If (TQt_2_2_0 -)
void showExtension(bool);
-%End
protected:
void setResult(int);
void keyPressEvent(TQKeyEvent *);
void closeEvent(TQCloseEvent *);
-%If (TQt_2_2_0 -)
void resizeEvent(TQResizeEvent *);
-%End
-%If (TQt_3_0_0 -)
void contextMenuEvent(TQContextMenuEvent *);
bool eventFilter(TQObject *,TQEvent *);
void adjustPosition(TQWidget *);
-%End
private:
TQDialog(const TQDialog &);