diff options
Diffstat (limited to 'konq-plugins/crashes')
-rw-r--r-- | konq-plugins/crashes/crashesplugin.cpp | 30 | ||||
-rw-r--r-- | konq-plugins/crashes/crashesplugin.h | 18 |
2 files changed, 24 insertions, 24 deletions
diff --git a/konq-plugins/crashes/crashesplugin.cpp b/konq-plugins/crashes/crashesplugin.cpp index 8d01553..b1e1f6f 100644 --- a/konq-plugins/crashes/crashesplugin.cpp +++ b/konq-plugins/crashes/crashesplugin.cpp @@ -37,7 +37,7 @@ typedef KGenericFactory<CrashesPlugin> CrashesPluginFactory; K_EXPORT_COMPONENT_FACTORY( libcrashesplugin, CrashesPluginFactory( "crashesplugin" ) ) -CrashesPlugin::CrashesPlugin( QObject* parent, const char* name, const QStringList & ) +CrashesPlugin::CrashesPlugin( TQObject* parent, const char* name, const TQStringList & ) : KParts::Plugin( parent, name ) { m_part = (parent && parent->inherits( "KHTMLPart" )) ? static_cast<KHTMLPart*>(parent) : 0L; @@ -48,8 +48,8 @@ CrashesPlugin::CrashesPlugin( QObject* parent, const char* name, const QStringLi m_pCrashesMenu->setDelayed( false ); m_pCrashesMenu->setEnabled( true ); - connect( m_pCrashesMenu->popupMenu(), SIGNAL( aboutToShow() ), - this, SLOT( slotAboutToShow() ) ); + connect( m_pCrashesMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), + this, TQT_SLOT( slotAboutToShow() ) ); } CrashesPlugin::~CrashesPlugin() @@ -62,10 +62,10 @@ void CrashesPlugin::slotAboutToShow() KCrashBookmarkImporter importer(KCrashBookmarkImporter::crashBookmarksDir()); - connect( &importer, SIGNAL( newBookmark( const QString &, const QCString &, const QString &) ), - SLOT( newBookmarkCallback( const QString &, const QCString &, const QString & ) ) ); + connect( &importer, TQT_SIGNAL( newBookmark( const TQString &, const TQCString &, const TQString &) ), + TQT_SLOT( newBookmarkCallback( const TQString &, const TQCString &, const TQString & ) ) ); - connect( &importer, SIGNAL( endFolder() ), SLOT( endFolderCallback() ) ); + connect( &importer, TQT_SIGNAL( endFolder() ), TQT_SLOT( endFolderCallback() ) ); int count = m_pCrashesMenu->popupMenu()->count(); @@ -89,7 +89,7 @@ void CrashesPlugin::slotAboutToShow() m_crashRangesList.append( CrashRange(firstItem, count) ); m_pCrashesMenu->popupMenu()->insertItem( i18n("All Pages of This Crash"), this, - SLOT(slotGroupSelected(int)), + TQT_SLOT(slotGroupSelected(int)), 0, crashGroup--); } m_pCrashesMenu->popupMenu()->insertSeparator(); @@ -97,14 +97,14 @@ void CrashesPlugin::slotAboutToShow() gotSep = true; firstItem = ++count; } else { - QString str = (*e).first; + TQString str = (*e).first; if (str.length() > 48) { str.truncate(48); str.append("..."); } m_pCrashesMenu->popupMenu()->insertItem( str, this, - SLOT(slotItemSelected(int)), + TQT_SLOT(slotItemSelected(int)), 0, ++count ); gotSep = false; } @@ -113,13 +113,13 @@ void CrashesPlugin::slotAboutToShow() m_crashRangesList.append( CrashRange(firstItem, count) ); m_pCrashesMenu->popupMenu()->insertItem( i18n("All Pages of This Crash"), this, - SLOT(slotGroupSelected(int)), + TQT_SLOT(slotGroupSelected(int)), 0, crashGroup--); } } else { m_pCrashesMenu->popupMenu()->insertItem( i18n("No Recovered Crashes"), this, - SLOT(slotItemSelected(int)), + TQT_SLOT(slotItemSelected(int)), 0, ++count ); gotSep = false; enable = false; @@ -131,20 +131,20 @@ void CrashesPlugin::slotAboutToShow() } int id =m_pCrashesMenu->popupMenu()->insertItem( i18n("&Clear List of Crashes"), this, - SLOT(slotClearCrashes()), + TQT_SLOT(slotClearCrashes()), 0, ++count ); m_pCrashesMenu->popupMenu()->setItemEnabled( id, enable); } -void CrashesPlugin::newBookmarkCallback( const QString & text, const QCString & url, - const QString & ) +void CrashesPlugin::newBookmarkCallback( const TQString & text, const TQCString & url, + const TQString & ) { m_crashesList.prepend(qMakePair(text,url)); } void CrashesPlugin::endFolderCallback( ) { - m_crashesList.prepend(qMakePair(QString("-"),QCString("-"))); + m_crashesList.prepend(qMakePair(TQString("-"),TQCString("-"))); } void CrashesPlugin::slotClearCrashes() { diff --git a/konq-plugins/crashes/crashesplugin.h b/konq-plugins/crashes/crashesplugin.h index cff0831..3c6a402 100644 --- a/konq-plugins/crashes/crashesplugin.h +++ b/konq-plugins/crashes/crashesplugin.h @@ -21,9 +21,9 @@ #ifndef __CRASHES_PLUGIN_H #define __CRASHES_PLUGIN_H -#include <qmap.h> -#include <qvaluelist.h> -#include <qstringlist.h> +#include <tqmap.h> +#include <tqvaluelist.h> +#include <tqstringlist.h> #include <kurl.h> #include <klibloader.h> @@ -37,8 +37,8 @@ class CrashesPlugin : public KParts::Plugin Q_OBJECT public: - CrashesPlugin( QObject* parent, const char* name, - const QStringList & ); + CrashesPlugin( TQObject* parent, const char* name, + const TQStringList & ); ~CrashesPlugin(); protected slots: @@ -46,7 +46,7 @@ protected slots: void slotClearCrashes(); void slotItemSelected(int); void slotGroupSelected(int); - void newBookmarkCallback( const QString &, const QCString &, const QString & ); + void newBookmarkCallback( const TQString &, const TQCString &, const TQString & ); void endFolderCallback( ); private: @@ -55,13 +55,13 @@ private: KHTMLPart* m_part; KActionMenu* m_pCrashesMenu; - typedef QPair<QString,QCString> Crash; - typedef QValueList<Crash> CrashesList; + typedef QPair<TQString,TQCString> Crash; + typedef TQValueList<Crash> CrashesList; CrashesList m_crashesList; typedef QPair<int, int> CrashRange; - typedef QValueList<CrashRange> CrashRangesList; + typedef TQValueList<CrashRange> CrashRangesList; CrashRangesList m_crashRangesList; |