diff options
Diffstat (limited to 'src/widgetnotifyhelper.cpp')
-rw-r--r-- | src/widgetnotifyhelper.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/widgetnotifyhelper.cpp b/src/widgetnotifyhelper.cpp index 6140453..3bd0e3f 100644 --- a/src/widgetnotifyhelper.cpp +++ b/src/widgetnotifyhelper.cpp @@ -18,13 +18,13 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "widgetnotifyhelper.h" -#include <qobjectlist.h> +#include <tqobjectlist.h> #include <iostream> -WidgetNotifyHelper::WidgetNotifyHelper(QObject *parent, const char *name) - : QObject(parent, name) +WidgetNotifyHelper::WidgetNotifyHelper(TQObject *parent, const char *name) + : TQObject(parent, name) { } @@ -33,61 +33,61 @@ WidgetNotifyHelper::~WidgetNotifyHelper() { } -void WidgetNotifyHelper::setupChangedAction(QWidget *w) +void WidgetNotifyHelper::setupChangedAction(TQWidget *w) { // connect changed signals to own signal - QObject *obj; - QObjectList *list; + TQObject *obj; + TQObjectList *list; - list = w->queryList( "QComboBox" ); + list = w->queryList( TQCOMBOBOX_OBJECT_NAME_STRING ); for ( obj = list->first(); obj; obj = list->next() ) { // std::cout << "obj found: " << obj->name() << std::endl; - connect(obj,SIGNAL(textChanged ( const QString & )),w,SIGNAL(changed())); + connect(obj,TQT_SIGNAL(textChanged ( const TQString & )),w,TQT_SIGNAL(changed())); } list = w->queryList( "KLineEdit" ); for ( obj = list->first(); obj; obj = list->next() ) { // std::cout << "obj found: " << obj->name() << std::endl; - connect(obj,SIGNAL(textChanged ( const QString & )),w,SIGNAL(changed())); + connect(obj,TQT_SIGNAL(textChanged ( const TQString & )),w,TQT_SIGNAL(changed())); } - list = w->queryList( "QLineEdit" ); + list = w->queryList( TQLINEEDIT_OBJECT_NAME_STRING ); for ( obj = list->first(); obj; obj = list->next() ) { // std::cout << "obj found: " << obj->name() << std::endl; - connect(obj,SIGNAL(textChanged (const QString & )),w,SIGNAL(changed())); + connect(obj,TQT_SIGNAL(textChanged (const TQString & )),w,TQT_SIGNAL(changed())); } list = w->queryList( "KUrlRquester" ); for ( obj = list->first(); obj; obj = list->next() ) { // std::cout << "obj found: " << obj->name() << std::endl; - connect(obj,SIGNAL(textChanged ( const QString & )),w,SIGNAL(changed())); + connect(obj,TQT_SIGNAL(textChanged ( const TQString & )),w,TQT_SIGNAL(changed())); } - list = w->queryList( "QSpinBox" ); + list = w->queryList( TQSPINBOX_OBJECT_NAME_STRING ); for ( obj = list->first(); obj; obj = list->next() ) { // std::cout << "obj found: " << obj->name() << std::endl; - connect(obj,SIGNAL(valueChanged ( int )),w,SIGNAL(changed())); + connect(obj,TQT_SIGNAL(valueChanged ( int )),w,TQT_SIGNAL(changed())); } - list = w->queryList( "QCheckBox" ); + list = w->queryList( TQCHECKBOX_OBJECT_NAME_STRING ); for ( obj = list->first(); obj; obj = list->next() ) { // std::cout << "obj found: " << obj->name() << std::endl; - connect(obj,SIGNAL(stateChanged ( int )),w,SIGNAL(changed())); + connect(obj,TQT_SIGNAL(stateChanged ( int )),w,TQT_SIGNAL(changed())); } - list = w->queryList( "QRadioButton" ); + list = w->queryList( TQRADIOBUTTON_OBJECT_NAME_STRING ); for ( obj = list->first(); obj; obj = list->next() ) { // std::cout << "obj found: " << obj->name() << std::endl; - connect(obj,SIGNAL(stateChanged ( int )),w,SIGNAL(changed())); + connect(obj,TQT_SIGNAL(stateChanged ( int )),w,TQT_SIGNAL(changed())); } // connect changed to slot - connect(w,SIGNAL(changed ()),w,SLOT(dialogChanged())); + connect(w,TQT_SIGNAL(changed ()),w,TQT_SLOT(dialogChanged())); } |