diff options
Diffstat (limited to 'sip/qt/qpopupmenu.sip')
-rw-r--r-- | sip/qt/qpopupmenu.sip | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/sip/qt/qpopupmenu.sip b/sip/qt/qpopupmenu.sip index 7d52991..0e08bf5 100644 --- a/sip/qt/qpopupmenu.sip +++ b/sip/qt/qpopupmenu.sip @@ -56,97 +56,6 @@ ensures that the menu is deleted without having to explicity code it using %End -%If (- TQt_2_00) - -class TQPopupMenu : TQTableView, TQMenuData -{ -%TypeHeaderCode -#include <tqpopupmenu.h> -%End - -public: - TQPopupMenu(TQWidget * /TransferThis/ = 0,const char * = 0); - - void popup(const TQPoint &,int = 0); - void updateItem(int); - void setCheckable(bool); - bool isCheckable() const; - void setFont(const TQFont &); - void show(); - void hide(); - - int exec() /PyName=exec_loop, ReleaseGIL, - PreHook=__pyTQtPreEventLoopHook__, - PostHook=__pyTQtPostEventLoopHook__/; -%MethodCode - // Transfer ownership back to Python (a modal menu will - // probably have the main window as it's parent). This means - // the TQt menu 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->TQPopupMenu::exec(); - Py_END_ALLOW_THREADS -%End - - int exec(const TQPoint &,int = 0) /PyName=exec_loop, ReleaseGIL, - PreHook=__pyTQtPreEventLoopHook__, - PostHook=__pyTQtPostEventLoopHook__/; -%MethodCode - // Transfer ownership back to Python (a modal menu will - // probably have the main window as it's parent). This means - // the TQt menu 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->TQPopupMenu::exec(*a0,a1); - Py_END_ALLOW_THREADS -%End - - void setActiveItem(int); - int idAt(int) const; -%If (TQt_1_43 -) - int idAt(const TQPoint &) const; -%End - -signals: - void activated(int); - void highlighted(int); - void activatedRedirect(int); - void highlightedRedirect(int); - void aboutToShow(); - -protected: - int cellHeight(int); - int cellWidth(int); - void paintCell(TQPainter *,int,int); - void paintEvent(TQPaintEvent *); - void mousePressEvent(TQMouseEvent *); - void mouseReleaseEvent(TQMouseEvent *); - void mouseMoveEvent(TQMouseEvent *); - void keyPressEvent(TQKeyEvent *); - void timerEvent(TQTimerEvent *); - -private: - TQPopupMenu(const TQPopupMenu &); - void menuContentsChanged(); - void menuStateChanged(); - void menuInsPopup(TQPopupMenu *); - void menuDelPopup(TQPopupMenu *); - void frameChanged(); -}; - -%End - - -%If (TQt_2_00 -) - class TQPopupMenu : TQFrame, TQMenuData { %TypeHeaderCode @@ -156,12 +65,7 @@ class TQPopupMenu : TQFrame, TQMenuData public: TQPopupMenu(TQWidget * /TransferThis/ = 0,const char * = 0); -%If (- TQt_3_0_5) - void popup(const TQPoint &,int = 0); -%End -%If (TQt_3_0_5 -) void popup(const TQPoint &,int = -1); -%End void updateItem(int); virtual void setCheckable(bool); @@ -213,16 +117,10 @@ public: bool customWhatsThis() const; -%If (TQt_2_1_0 -) int insertTearOffHandle(int = -1,int = -1); -%End -%If (TQt_2_2_0 -) void activateItemAt(int); -%End -%If (TQt_3_0_0 -) TQRect itemGeometry(int); -%End signals: void activated(int); @@ -230,9 +128,7 @@ signals: void activatedRedirect(int); void highlightedRedirect(int); void aboutToShow(); -%If (TQt_2_2_0 -) void aboutToHide(); -%End protected: int itemHeight(int) const; @@ -247,27 +143,17 @@ protected: void mouseReleaseEvent(TQMouseEvent *); void mouseMoveEvent(TQMouseEvent *); void keyPressEvent(TQKeyEvent *); -%If (TQt_2_1_0 -) void focusInEvent(TQFocusEvent *); void focusOutEvent(TQFocusEvent *); -%End void timerEvent(TQTimerEvent *); -%If (TQt_3_0_0 -) void leaveEvent(TQEvent *); -%End void styleChange(TQStyle &); -%If (TQt_3_1_0 -) void enabledChange(bool); -%End -%If (TQt_2_1_0 -) int columns() const; bool focusNextPrevChild(bool); -%End -%If (TQt_3_0_0 -) int itemAtPos(const TQPoint &,bool = 1) const; -%End private: TQPopupMenu(const TQPopupMenu &); @@ -278,5 +164,3 @@ private: void menuDelPopup(TQPopupMenu *); void frameChanged(); }; - -%End |