diff options
Diffstat (limited to 'tqtinterface/qt4/src/kernel/tqwidget.h')
-rw-r--r-- | tqtinterface/qt4/src/kernel/tqwidget.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqwidget.h b/tqtinterface/qt4/src/kernel/tqwidget.h index 65b424e..0a75dad 100644 --- a/tqtinterface/qt4/src/kernel/tqwidget.h +++ b/tqtinterface/qt4/src/kernel/tqwidget.h @@ -351,6 +351,9 @@ public: void setMask( const QBitmap ); void setMask( const QRegion ); + void sendMouseEventToInputContext( int x, TQEvent::Type type, TQt::ButtonState button, TQt::ButtonState state ); + TQInputContext *getInputContext(); + #ifndef TQT_NO_STYLE void setStyle( TQStyle * ); TQStyle* setStyle( const TQString& ); @@ -541,6 +544,12 @@ private: friend class TQObject; +protected: + virtual TQWidget *icHolderWidget(); + +private: + void createInputContext(); + public Q_SLOTS: virtual void tqsetUpdatesEnabled( bool enable ); void tqrepaint(); @@ -570,6 +579,21 @@ public Q_SLOTS: Q_SIGNALS: void destroyed( TQObject* obj ); + +public: +#if defined(TQ_WS_X11) + enum X11WindowType { + X11WindowTypeSelect, + X11WindowTypeCombo, + X11WindowTypeDND, + X11WindowTypeTooltip, + X11WindowTypeMenu, // torn-off + X11WindowTypeDropdown, + X11WindowTypePopup + }; + void x11SetWindowType( X11WindowType type = X11WindowTypeSelect ); + void x11SetWindowTransient( TQWidget* tqparent ); +#endif }; inline void TQWidget::drawText( const TQPoint &p, const TQString &s ) |