diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /python/pykde/doc/signal.html | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'python/pykde/doc/signal.html')
-rw-r--r-- | python/pykde/doc/signal.html | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/python/pykde/doc/signal.html b/python/pykde/doc/signal.html index ab5b3f9d..b95ed7f6 100644 --- a/python/pykde/doc/signal.html +++ b/python/pykde/doc/signal.html @@ -79,25 +79,25 @@ NAME="AEN83" >A signal may be either a Qt signal (specified using <TT CLASS="LITERAL" ->SIGNAL()</TT +>TQT_SIGNAL()</TT >) or a Python signal (specified using <TT CLASS="LITERAL" ->PYSIGNAL()</TT +>PYQT_SIGNAL()</TT >).</P ><P >A slot can be either a Python callable object, a Qt signal (specified using <TT CLASS="LITERAL" ->SIGNAL()</TT +>TQT_SIGNAL()</TT >), a Python signal (specified using <TT CLASS="LITERAL" ->PYSIGNAL()</TT +>PYQT_SIGNAL()</TT >), or a Qt slot (specified using <TT CLASS="LITERAL" ->SLOT()</TT +>TQT_SLOT()</TT >).</P ><P >You connect signals to slots (and other signals) as you would from C++. For @@ -110,14 +110,14 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" ->QObject.connect(a,SIGNAL("QtSig()"),pyFunction) -QObject.connect(a,SIGNAL("QtSig()"),pyClass.pyMethod) -QObject.connect(a,SIGNAL("QtSig()"),PYSIGNAL("PySig")) -QObject.connect(a,SIGNAL("QtSig()"),SLOT("QtSlot()")) -QObject.connect(a,PYSIGNAL("PySig"),pyFunction) -QObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod) -QObject.connect(a,PYSIGNAL("PySig"),SIGNAL("QtSig()")) -QObject.connect(a,PYSIGNAL("PySig"),SLOT("QtSlot()"))</PRE +>TQObject.connect(a,TQT_SIGNAL("QtSig()"),pyFunction) +TQObject.connect(a,TQT_SIGNAL("QtSig()"),pyClass.pyMethod) +TQObject.connect(a,TQT_SIGNAL("QtSig()"),PYQT_SIGNAL("PySig")) +TQObject.connect(a,TQT_SIGNAL("QtSig()"),TQT_SLOT("QtSlot()")) +TQObject.connect(a,PYQT_SIGNAL("PySig"),pyFunction) +TQObject.connect(a,PYQT_SIGNAL("PySig"),pyClass.pyMethod) +TQObject.connect(a,PYQT_SIGNAL("PySig"),TQT_SIGNAL("QtSig()")) +TQObject.connect(a,PYQT_SIGNAL("PySig"),TQT_SLOT("QtSlot()"))</PRE ></TD ></TR ></TABLE @@ -133,11 +133,11 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" ->sbar = QScrollBar() -lcd = QLCDNumber() +>sbar = TQScrollBar() +lcd = TQLCDNumber() -QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display) -QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))</PRE +TQObject.connect(sbar,TQT_SIGNAL("valueChanged(int)"),lcd.display) +TQObject.connect(sbar,TQT_SIGNAL("valueChanged(int)"),lcd,TQT_SLOT("display(int)"))</PRE ></TD ></TR ></TABLE @@ -149,7 +149,7 @@ more efficient.</P ><P >Any instance of a class that is derived from the <TT CLASS="LITERAL" ->QObject</TT +>TQObject</TT > class can emit a signal using the <TT CLASS="LITERAL" @@ -165,8 +165,8 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" ->a.emit(SIGNAL("clicked()"),()) -a.emit(PYSIGNAL("pySig"),("Hello","World"))</PRE +>a.emit(TQT_SIGNAL("clicked()"),()) +a.emit(PYQT_SIGNAL("pySig"),("Hello","World"))</PRE ></TD ></TR ></TABLE @@ -193,18 +193,18 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" ->int QMenuData::insertItem (const QString & text, - const QObject * receiver, const char * member, +>int TQMenuData::insertItem (const TQString & text, + const TQObject * receiver, const char * member, int accel = 0, int id = -1, int index = -1 ) -KAction ( const QString& text, int accel, - const QObject* receiver, const char* slot, - QObject* parent, const char* name = 0 )</PRE +KAction ( const TQString& text, int accel, + const TQObject* receiver, const char* slot, + TQObject* parent, const char* name = 0 )</PRE ></TD ></TR ></TABLE ><P ->Notice the "const QObject* receiver, const char* slot" parameters for each declaration.</P +>Notice the "const TQObject* receiver, const char* slot" parameters for each declaration.</P ><P >In PyKDE, these two parameters are replaced with a SINGLE parameter that specifies the slot to be connected to the menu item, toolbar button or KAction:</P |