From bab40890696ec68c337dc290880423a0602b83c7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 16 Jan 2011 02:40:35 +0000 Subject: Finished remaining porting to new TQt API git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp | 4 ++-- interfaces/ktexteditor/document.h | 1 + interfaces/ktexteditor/editor.h | 1 + interfaces/ktexteditor/editorchooser.cpp | 4 ++-- interfaces/ktexteditor/editorchooser_ui.ui | 6 +++--- interfaces/ktexteditor/templateinterface.cpp | 6 +++--- 6 files changed, 12 insertions(+), 10 deletions(-) (limited to 'interfaces') diff --git a/interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp b/interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp index 0ce32c6cd..ec42f6db9 100644 --- a/interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp +++ b/interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp @@ -25,7 +25,7 @@ protected: { Q_UNUSED(className); Q_UNUSED(args); - return new KFileAudioPreview( dynamic_cast( parent ), name ); + return TQT_TQOBJECT(new KFileAudioPreview( dynamic_cast( parent ), name )); } }; @@ -41,7 +41,7 @@ class KFileAudioPreview::KFileAudioPreviewPrivate public: KFileAudioPreviewPrivate( TQWidget *parent ) { - player = KParts::ComponentFactory::createInstanceFromQuery( "KMediaPlayer/Player", TQString::null, parent ); + player = KParts::ComponentFactory::createInstanceFromQuery( "KMediaPlayer/Player", TQString(), TQT_TQOBJECT(parent) ); } ~KFileAudioPreviewPrivate() diff --git a/interfaces/ktexteditor/document.h b/interfaces/ktexteditor/document.h index 624c344b9..da6a6dd77 100644 --- a/interfaces/ktexteditor/document.h +++ b/interfaces/ktexteditor/document.h @@ -33,6 +33,7 @@ class KTEXTEDITOR_EXPORT Document : public KTextEditor::Editor friend class PrivateDocument; Q_OBJECT + TQ_OBJECT public: Document ( TQObject *parent = 0, const char *name = 0 ); diff --git a/interfaces/ktexteditor/editor.h b/interfaces/ktexteditor/editor.h index fa4761432..2530257eb 100644 --- a/interfaces/ktexteditor/editor.h +++ b/interfaces/ktexteditor/editor.h @@ -41,6 +41,7 @@ class KTEXTEDITOR_EXPORT Editor : public KParts::ReadWritePart friend class PrivateEditor; Q_OBJECT + TQ_OBJECT public: /** diff --git a/interfaces/ktexteditor/editorchooser.cpp b/interfaces/ktexteditor/editorchooser.cpp index 60aef8d10..fa4677aaf 100644 --- a/interfaces/ktexteditor/editorchooser.cpp +++ b/interfaces/ktexteditor/editorchooser.cpp @@ -57,7 +57,7 @@ EditorChooser::EditorChooser(TQWidget *parent,const char *name) : { if ((*it)->desktopEntryName().contains(editor)) { - d->chooser->editorCombo->insertItem(i18n("System Default (%1)").arg((*it)->name())); + d->chooser->editorCombo->insertItem(TQString(i18n("System Default (%1)").arg((*it)->name()))); break; } } @@ -82,7 +82,7 @@ void EditorChooser::readAppSetting(const TQString& postfix){ if (editor.isEmpty()) d->chooser->editorCombo->setCurrentItem(0); else { - int idx=d->elements.findIndex(editor); + int idx=d->elements.tqfindIndex(editor); idx=idx+1; d->chooser->editorCombo->setCurrentItem(idx); } diff --git a/interfaces/ktexteditor/editorchooser_ui.ui b/interfaces/ktexteditor/editorchooser_ui.ui index 831d8d37a..816a1d194 100644 --- a/interfaces/ktexteditor/editorchooser_ui.ui +++ b/interfaces/ktexteditor/editorchooser_ui.ui @@ -1,6 +1,6 @@ EditorChooser_UI - + EditorChooser @@ -27,7 +27,7 @@ unnamed - + TextLabel1 @@ -44,7 +44,7 @@ WordBreak|AlignVCenter|AlignLeft - + editorCombo diff --git a/interfaces/ktexteditor/templateinterface.cpp b/interfaces/ktexteditor/templateinterface.cpp index b19b1d10a..10576fe15 100644 --- a/interfaces/ktexteditor/templateinterface.cpp +++ b/interfaces/ktexteditor/templateinterface.cpp @@ -75,8 +75,8 @@ bool TemplateInterface::expandMacros( TQMap &map, TQWidget * KABC::StdAddressBook *addrBook = 0; KABC::Addressee userAddress; TQDateTime datetime = TQDateTime::tqcurrentDateTime(); - TQDate date = datetime.date(); - TQTime time = datetime.time(); + TQDate date = TQT_TQDATE_OBJECT(datetime.date()); + TQTime time = TQT_TQTIME_OBJECT(datetime.time()); TQMap::Iterator it; for ( it = map.begin(); it != map.end(); ++it ) @@ -173,7 +173,7 @@ bool TemplateInterface::insertTemplateText ( uint line, uint column, const TQStr } } TQString placeholder = rx.cap( 1 ); - if ( ! enhancedInitValues.contains( placeholder ) ) + if ( ! enhancedInitValues.tqcontains( placeholder ) ) enhancedInitValues[ placeholder ] = ""; pos += rx.matchedLength(); -- cgit v1.2.1