From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kparts/historyprovider.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kparts/historyprovider.cpp') diff --git a/kparts/historyprovider.cpp b/kparts/historyprovider.cpp index d55a96b66..416a109f6 100644 --- a/kparts/historyprovider.cpp +++ b/kparts/historyprovider.cpp @@ -17,14 +17,14 @@ Boston, MA 02110-1301, USA. */ -#include +#include #include #include "historyprovider.h" using namespace KParts; -template class QDict; +template class TQDict; HistoryProvider * HistoryProvider::s_self = 0L; @@ -34,7 +34,7 @@ public: HistoryProviderPrivate() : dict( 1009 ) {} - QDict dict; + TQDict dict; }; HistoryProvider * HistoryProvider::self() @@ -44,8 +44,8 @@ HistoryProvider * HistoryProvider::self() return s_self; } -HistoryProvider::HistoryProvider( QObject *parent, const char *name ) - : QObject( parent, name ) +HistoryProvider::HistoryProvider( TQObject *parent, const char *name ) + : TQObject( parent, name ) { if ( !s_self ) s_self = this; @@ -61,19 +61,19 @@ HistoryProvider::~HistoryProvider() s_self = 0; } -bool HistoryProvider::contains( const QString& item ) const +bool HistoryProvider::contains( const TQString& item ) const { return (bool) d->dict.find( item ); } -void HistoryProvider::insert( const QString& item ) +void HistoryProvider::insert( const TQString& item ) { // no need to allocate memory, we only want to have fast lookup, no mapping d->dict.replace( item, (void*) 1 ); emit inserted( item ); } -void HistoryProvider::remove( const QString& item ) +void HistoryProvider::remove( const TQString& item ) { (void) d->dict.remove( item ); } -- cgit v1.2.1