diff options
Diffstat (limited to 'lib/util/configwidgetproxy.h')
-rw-r--r-- | lib/util/configwidgetproxy.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/util/configwidgetproxy.h b/lib/util/configwidgetproxy.h index 84e1d18c..1ba7e5c5 100644 --- a/lib/util/configwidgetproxy.h +++ b/lib/util/configwidgetproxy.h @@ -20,9 +20,9 @@ #ifndef _CONFIGWIDGETPROXY_H #define _CONFIGWIDGETPROXY_H -#include <qobject.h> -#include <qstring.h> -#include <qmap.h> +#include <tqobject.h> +#include <tqstring.h> +#include <tqmap.h> class KDevCore; class KDialogBase; @@ -47,20 +47,20 @@ A typical case looks like this: _configProxy = new ConfigWidgetProxy( core() ); _configProxy->createGlobalConfigPage( i18n("My Part"), GLOBALDOC_OPTIONS, info()->icon() ); _configProxy->createProjectConfigPage( i18n("My Part"), PROJECTDOC_OPTIONS, info()->icon() ); -connect( _configProxy, SIGNAL(insertConfigWidget(const QObject*, QWidget*, unsigned int )), - this, SLOT(insertConfigWidget(const QObject*, QWidget*, unsigned int )) ); +connect( _configProxy, TQT_SIGNAL(insertConfigWidget(const TQObject*, TQWidget*, unsigned int )), + this, TQT_SLOT(insertConfigWidget(const TQObject*, TQWidget*, unsigned int )) ); ... ... -void MyPart::insertConfigWidget( QObject const * dlg, QWidget * page, unsigned int pagenumber ) +void MyPart::insertConfigWidget( TQObject const * dlg, TQWidget * page, unsigned int pagenumber ) { if ( pagenumber == PROJECTDOC_OPTIONS ) { MyPartGlobalSettings * w = new MyPartGlobalSettings( this, page ); - connect( dlg, SIGNAL(okClicked()), w, SLOT(slotAccept()) ); + connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(slotAccept()) ); } else if ( pagenumber == PROJECTDOC_OPTIONS ) { MyPartProjectSettings * w = new MyPartProjectSettings( this, page ); - connect( dlg, SIGNAL(okClicked()), w, SLOT(slotAccept()) ); + connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(slotAccept()) ); } } @endcode @@ -84,7 +84,7 @@ public: * @param pagenumber A per-proxy unique identifier, used when responding to insertConfigWidget() signal. * @param icon The name of the icon to use. */ - void createGlobalConfigPage( QString const & title, unsigned int pagenumber, QString const & icon = "kdevelop" ); + void createGlobalConfigPage( TQString const & title, unsigned int pagenumber, TQString const & icon = "kdevelop" ); /** * Tells the proxy you want a page in the Project Settings. @@ -92,7 +92,7 @@ public: * @param pagenumber A per-proxy unique identifier, used when responding to insertConfigWidget() signal. * @param icon The name of the icon to use. */ - void createProjectConfigPage( QString const & title, unsigned int pagenumber, QString const & icon = "kdevelop" ); + void createProjectConfigPage( TQString const & title, unsigned int pagenumber, TQString const & icon = "kdevelop" ); /** * Removes a config page from the proxy. Next time the settings dialog opens, this page will not be available. @@ -107,17 +107,17 @@ signals: * @param page The setting page. The client should use this as parent to the config widget. * @param pagenumber The identifier set in createGlobalConfigPage() or createProjectConfigPage(). Identifies the requested config page. */ - void insertConfigWidget( const KDialogBase * dlg, QWidget * page, unsigned int pagenumber ); + void insertConfigWidget( const KDialogBase * dlg, TQWidget * page, unsigned int pagenumber ); private slots: void slotConfigWidget( KDialogBase * ); void slotProjectConfigWidget( KDialogBase * ); void slotConfigWidgetDestroyed(); - void slotAboutToShowPage( QWidget * page ); + void slotAboutToShowPage( TQWidget * page ); private: - typedef QMap<unsigned int, QPair<QString,QString> > TitleMap; - typedef QMap<QWidget*, int> PageMap; + typedef TQMap<unsigned int, QPair<TQString,TQString> > TitleMap; + typedef TQMap<TQWidget*, int> PageMap; TitleMap _globalTitleMap; TitleMap _projectTitleMap; |