summaryrefslogtreecommitdiffstats
path: root/kparts/tests
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kparts/tests
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kparts/tests')
-rw-r--r--kparts/tests/example.cpp2
-rw-r--r--kparts/tests/ghostview.cpp4
-rw-r--r--kparts/tests/normalktm.cpp2
-rw-r--r--kparts/tests/notepad.cpp6
-rw-r--r--kparts/tests/notepad.desktop2
-rw-r--r--kparts/tests/notepadpart.rc4
-rw-r--r--kparts/tests/parts.cpp8
-rw-r--r--kparts/tests/parts.h4
-rw-r--r--kparts/tests/plugin_foobar.rc4
-rw-r--r--kparts/tests/plugin_spellcheck.rc4
10 files changed, 20 insertions, 20 deletions
diff --git a/kparts/tests/example.cpp b/kparts/tests/example.cpp
index a1e8110e5..22c87f30c 100644
--- a/kparts/tests/example.cpp
+++ b/kparts/tests/example.cpp
@@ -79,7 +79,7 @@ void Shell::embedEditor()
if ( m_manager->activePart() == m_part2 )
createGUI( 0L );
- // replace part2 with the editor part
+ // tqreplace part2 with the editor part
delete m_part2;
m_part2 = 0L;
m_editorpart = new NotepadPart( m_splitter, "editor",
diff --git a/kparts/tests/ghostview.cpp b/kparts/tests/ghostview.cpp
index a1ace7720..2ba2bd1d2 100644
--- a/kparts/tests/ghostview.cpp
+++ b/kparts/tests/ghostview.cpp
@@ -25,7 +25,7 @@ Shell::Shell()
KAction * paQuit = new KAction( "&Quit" , "exit", 0, this, TQT_SLOT( close() ), actionCollection(), "file_quit" );
- // Try to find a postscript component first
+ // Try to tqfind a postscript component first
KTrader::OfferList offers = KTrader::self()->query("application/postscript", "('KParts/ReadOnlyPart' in ServiceTypes) or ('Browser/View' in ServiceTypes)");
KLibFactory *factory = 0;
@@ -47,7 +47,7 @@ Shell::Shell()
}
}
- // if we couldn't find a component with the trader, try the
+ // if we couldn't tqfind a component with the trader, try the
// kghostview library directly. if this ever happens, then something
// is seriously screwed up, though -- the kghostview component
// should be picked up by the trader
diff --git a/kparts/tests/normalktm.cpp b/kparts/tests/normalktm.cpp
index ec4420a7e..e8fdae56d 100644
--- a/kparts/tests/normalktm.cpp
+++ b/kparts/tests/normalktm.cpp
@@ -74,7 +74,7 @@ void Shell::slotFileOpenRemote()
void Shell::embedEditor()
{
- // replace part2 with the editor part
+ // tqreplace part2 with the editor part
delete m_part2;
m_part2 = 0L;
m_editorpart = new NotepadPart( m_splitter, "editor",
diff --git a/kparts/tests/notepad.cpp b/kparts/tests/notepad.cpp
index e0857a51e..3a46f76c3 100644
--- a/kparts/tests/notepad.cpp
+++ b/kparts/tests/notepad.cpp
@@ -16,17 +16,17 @@
#include <kstatusbar.h>
#include <kstandarddirs.h>
-NotepadPart::NotepadPart( TQWidget* parentWidget, const char*,
+NotepadPart::NotepadPart( TQWidget* tqparentWidget, const char*,
TQObject* parent, const char* name,
const TQStringList& )
: KParts::ReadWritePart( parent, name )
{
setInstance( NotepadFactory::instance() );
- m_edit = new TQMultiLineEdit( parentWidget, "NotepadPart's multiline edit" );
+ m_edit = new TQMultiLineEdit( tqparentWidget, "NotepadPart's multiline edit" );
setWidget( m_edit );
- (void)new KAction( "Search and replace", 0, this, TQT_SLOT( slotSearchReplace() ), actionCollection(), "searchreplace" );
+ (void)new KAction( "Search and tqreplace", 0, this, TQT_SLOT( slotSearchReplace() ), actionCollection(), "searchtqreplace" );
setXMLFile( "notepadpart.rc" );
setReadWrite( true );
}
diff --git a/kparts/tests/notepad.desktop b/kparts/tests/notepad.desktop
index e7f1bb432..29fd1b17c 100644
--- a/kparts/tests/notepad.desktop
+++ b/kparts/tests/notepad.desktop
@@ -80,7 +80,7 @@ Name[zh_CN]=记事本(例子)
Name[zh_HK]=記事本(範例)
Name[zh_TW]=記事本(範例)
Name[zu]=Incwadi yokubhala (umfanekiso)
-MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
+MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-tqmoc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
ServiceTypes=KParts/ReadOnlyPart
X-KDE-Library=libnotepadpart
Type=Service
diff --git a/kparts/tests/notepadpart.rc b/kparts/tests/notepadpart.rc
index ba30eb322..272f6cbc9 100644
--- a/kparts/tests/notepadpart.rc
+++ b/kparts/tests/notepadpart.rc
@@ -3,11 +3,11 @@
<MenuBar>
<Menu name="file"><Text>&amp;File</Text>
<Menu name="NotepadSubMenu"><text>Notepad Stuff</text>
- <Action name="searchreplace"/>
+ <Action name="searchtqreplace"/>
</Menu>
</Menu>
<Menu name="edit"><Text>&amp;Edit</Text>
- <Action name="searchreplace"/>
+ <Action name="searchtqreplace"/>
</Menu>
</MenuBar>
<StatusBar/>
diff --git a/kparts/tests/parts.cpp b/kparts/tests/parts.cpp
index d932a168f..f11f0194f 100644
--- a/kparts/tests/parts.cpp
+++ b/kparts/tests/parts.cpp
@@ -18,12 +18,12 @@
#include <kaction.h>
#include <klocale.h>
-Part1::Part1( TQObject *parent, TQWidget * parentWidget )
+Part1::Part1( TQObject *parent, TQWidget * tqparentWidget )
: KParts::ReadOnlyPart( parent, "Part1" )
{
m_instance = new KInstance( "kpartstestpart" );
setInstance( m_instance );
- m_edit = new TQMultiLineEdit( parentWidget );
+ m_edit = new TQMultiLineEdit( tqparentWidget );
setWidget( m_edit );
setXMLFile( "kpartstest_part1.rc" );
@@ -56,12 +56,12 @@ bool Part1::openFile()
return true;
}
-Part2::Part2( TQObject *parent, TQWidget * parentWidget )
+Part2::Part2( TQObject *parent, TQWidget * tqparentWidget )
: KParts::Part( parent, "Part2" )
{
m_instance = new KInstance( "part2" );
setInstance( m_instance );
- TQWidget * w = new TQWidget( parentWidget, "Part2Widget" );
+ TQWidget * w = new TQWidget( tqparentWidget, "Part2Widget" );
setWidget( w );
TQCheckBox * cb = new TQCheckBox( "something", w );
diff --git a/kparts/tests/parts.h b/kparts/tests/parts.h
index 6f373a85c..873a6fea4 100644
--- a/kparts/tests/parts.h
+++ b/kparts/tests/parts.h
@@ -13,7 +13,7 @@ class Part1 : public KParts::ReadOnlyPart
{
Q_OBJECT
public:
- Part1( TQObject *parent, TQWidget * parentWidget );
+ Part1( TQObject *parent, TQWidget * tqparentWidget );
virtual ~Part1();
protected:
@@ -28,7 +28,7 @@ class Part2 : public KParts::Part
{
Q_OBJECT
public:
- Part2( TQObject *parent, TQWidget * parentWidget );
+ Part2( TQObject *parent, TQWidget * tqparentWidget );
virtual ~Part2();
protected:
diff --git a/kparts/tests/plugin_foobar.rc b/kparts/tests/plugin_foobar.rc
index e614e505f..377c6b901 100644
--- a/kparts/tests/plugin_foobar.rc
+++ b/kparts/tests/plugin_foobar.rc
@@ -2,10 +2,10 @@
<kpartplugin library="libfoobar">
<MenuBar>
<Menu name="file"><Text>&amp;File</Text>
- <Action name="searchreplace"/>
+ <Action name="searchtqreplace"/>
</Menu>
<Menu name="woohoo"><Text>fun</Text>
- <Action name="searchreplace"/>
+ <Action name="searchtqreplace"/>
</Menu>
</MenuBar>
<ToolBar name="gah"/>
diff --git a/kparts/tests/plugin_spellcheck.rc b/kparts/tests/plugin_spellcheck.rc
index 1980186cf..495148d91 100644
--- a/kparts/tests/plugin_spellcheck.rc
+++ b/kparts/tests/plugin_spellcheck.rc
@@ -6,9 +6,9 @@
</Menu>
<Menu name="SomePluginMenu"><text>Some Cool Plugin Menu</text>
<Action name="spellcheck"/>
- <Action name="searchreplace"/>
+ <Action name="searchtqreplace"/>
<Menu name="WhatASubMenu"><text>Yep</text>
- <Action name="searchreplace"/>
+ <Action name="searchtqreplace"/>
</Menu>
</Menu>
</MenuBar>