summaryrefslogtreecommitdiffstats
path: root/tdeparts/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tdeparts/tests')
-rw-r--r--tdeparts/tests/example.cpp16
-rw-r--r--tdeparts/tests/example.h2
-rw-r--r--tdeparts/tests/ghostview.cpp6
-rw-r--r--tdeparts/tests/ghostview.h2
-rw-r--r--tdeparts/tests/normalktm.cpp12
-rw-r--r--tdeparts/tests/normalktm.h2
-rw-r--r--tdeparts/tests/notepad.cpp8
-rw-r--r--tdeparts/tests/notepad.h2
-rw-r--r--tdeparts/tests/parts.h4
-rw-r--r--tdeparts/tests/plugin_spellcheck.cpp2
-rw-r--r--tdeparts/tests/plugin_spellcheck.h2
11 files changed, 29 insertions, 29 deletions
diff --git a/tdeparts/tests/example.cpp b/tdeparts/tests/example.cpp
index fedf93ee6..319c970a8 100644
--- a/tdeparts/tests/example.cpp
+++ b/tdeparts/tests/example.cpp
@@ -8,7 +8,7 @@
#include <tqdir.h>
#include <kiconloader.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeapplication.h>
#include <tdemessagebox.h>
#include <tdeaction.h>
@@ -21,8 +21,8 @@ Shell::Shell()
m_manager = new KParts::PartManager( this );
// When the manager says the active part changes, the builder updates (recreates) the GUI
- connect( m_manager, TQT_SIGNAL( activePartChanged( KParts::Part * ) ),
- this, TQT_SLOT( createGUI( KParts::Part * ) ) );
+ connect( m_manager, TQ_SIGNAL( activePartChanged( KParts::Part * ) ),
+ this, TQ_SLOT( createGUI( KParts::Part * ) ) );
// We can do this "switch active part" because we have a splitter with
// two items in it.
@@ -34,13 +34,13 @@ Shell::Shell()
TDEActionCollection *coll = actionCollection();
- (void)new TDEAction( "&View local file", 0, this, TQT_SLOT( slotFileOpen() ), coll, "open_local_file" );
- (void)new TDEAction( "&View remote file", 0, this, TQT_SLOT( slotFileOpenRemote() ), coll, "open_remote_file" );
+ (void)new TDEAction( "&View local file", 0, this, TQ_SLOT( slotFileOpen() ), coll, "open_local_file" );
+ (void)new TDEAction( "&View remote file", 0, this, TQ_SLOT( slotFileOpenRemote() ), coll, "open_remote_file" );
- m_paEditFile = new TDEAction( "&Edit file", 0, this, TQT_SLOT( slotFileEdit() ), coll, "edit_file" );
- m_paCloseEditor = new TDEAction( "&Close file editor", 0, this, TQT_SLOT( slotFileCloseEditor() ), coll, "close_editor" );
+ m_paEditFile = new TDEAction( "&Edit file", 0, this, TQ_SLOT( slotFileEdit() ), coll, "edit_file" );
+ m_paCloseEditor = new TDEAction( "&Close file editor", 0, this, TQ_SLOT( slotFileCloseEditor() ), coll, "close_editor" );
m_paCloseEditor->setEnabled(false);
- TDEAction * paQuit = new TDEAction( "&Quit", 0, this, TQT_SLOT( close() ), coll, "shell_quit" );
+ TDEAction * paQuit = new TDEAction( "&Quit", 0, this, TQ_SLOT( close() ), coll, "shell_quit" );
paQuit->setIconSet(TQIconSet(BarIcon("system-log-out")));
(void)new TDEAction( "Yet another menu item", 0, coll, "shell_yami" );
diff --git a/tdeparts/tests/example.h b/tdeparts/tests/example.h
index 76541437d..9264bfa25 100644
--- a/tdeparts/tests/example.h
+++ b/tdeparts/tests/example.h
@@ -10,7 +10,7 @@ class TQWidget;
class Shell : public KParts::MainWindow
{
- Q_OBJECT
+ TQ_OBJECT
public:
Shell();
virtual ~Shell();
diff --git a/tdeparts/tests/ghostview.cpp b/tdeparts/tests/ghostview.cpp
index 39af41a73..e955a5463 100644
--- a/tdeparts/tests/ghostview.cpp
+++ b/tdeparts/tests/ghostview.cpp
@@ -1,5 +1,5 @@
#include <kiconloader.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeapplication.h>
#include <tdeaction.h>
#include <tdelocale.h>
@@ -21,9 +21,9 @@ Shell::Shell()
setXMLFile( "ghostviewtest_shell.rc" );
TDEAction * paOpen = new TDEAction( "&Open file" , "document-open", 0, this,
- TQT_SLOT( slotFileOpen() ), actionCollection(), "file_open" );
+ TQ_SLOT( slotFileOpen() ), actionCollection(), "file_open" );
- TDEAction * paQuit = new TDEAction( "&Quit" , "system-log-out", 0, this, TQT_SLOT( close() ), actionCollection(), "file_quit" );
+ TDEAction * paQuit = new TDEAction( "&Quit" , "system-log-out", 0, this, TQ_SLOT( close() ), actionCollection(), "file_quit" );
// Try to find a postscript component first
TDETrader::OfferList offers = TDETrader::self()->query("application/postscript", "('KParts/ReadOnlyPart' in ServiceTypes) or ('Browser/View' in ServiceTypes)");
diff --git a/tdeparts/tests/ghostview.h b/tdeparts/tests/ghostview.h
index 2974ded5e..983813f27 100644
--- a/tdeparts/tests/ghostview.h
+++ b/tdeparts/tests/ghostview.h
@@ -5,7 +5,7 @@
class Shell : public KParts::MainWindow
{
- Q_OBJECT
+ TQ_OBJECT
public:
Shell();
virtual ~Shell();
diff --git a/tdeparts/tests/normalktm.cpp b/tdeparts/tests/normalktm.cpp
index 3fe7f1a7a..0ecabbfca 100644
--- a/tdeparts/tests/normalktm.cpp
+++ b/tdeparts/tests/normalktm.cpp
@@ -8,7 +8,7 @@
#include <tqdir.h>
#include <kiconloader.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeapplication.h>
#include <tdemessagebox.h>
#include <tdeaction.h>
@@ -29,21 +29,21 @@ Shell::Shell()
TQPopupMenu * pFile = new TQPopupMenu( this );
menuBar()->insertItem( "File", pFile );
TQObject * coll = this;
- TDEAction * paLocal = new TDEAction( "&View local file", 0, this, TQT_SLOT( slotFileOpen() ), coll, "open_local_file" );
+ TDEAction * paLocal = new TDEAction( "&View local file", 0, this, TQ_SLOT( slotFileOpen() ), coll, "open_local_file" );
// No XML : we need to plug our actions ourselves
paLocal->plug( pFile );
- TDEAction * paRemote = new TDEAction( "&View remote file", 0, this, TQT_SLOT( slotFileOpenRemote() ), coll, "open_remote_file" );
+ TDEAction * paRemote = new TDEAction( "&View remote file", 0, this, TQ_SLOT( slotFileOpenRemote() ), coll, "open_remote_file" );
paRemote->plug( pFile );
- m_paEditFile = new TDEAction( "&Edit file", 0, this, TQT_SLOT( slotFileEdit() ), coll, "edit_file" );
+ m_paEditFile = new TDEAction( "&Edit file", 0, this, TQ_SLOT( slotFileEdit() ), coll, "edit_file" );
m_paEditFile->plug( pFile );
- m_paCloseEditor = new TDEAction( "&Close file editor", 0, this, TQT_SLOT( slotFileCloseEditor() ), coll, "close_editor" );
+ m_paCloseEditor = new TDEAction( "&Close file editor", 0, this, TQ_SLOT( slotFileCloseEditor() ), coll, "close_editor" );
m_paCloseEditor->setEnabled(false);
m_paCloseEditor->plug( pFile );
- TDEAction * paQuit = new TDEAction( "&Quit", 0, this, TQT_SLOT( close() ), coll, "shell_quit" );
+ TDEAction * paQuit = new TDEAction( "&Quit", 0, this, TQ_SLOT( close() ), coll, "shell_quit" );
paQuit->setIconSet(TQIconSet(BarIcon("system-log-out")));
paQuit->plug( pFile );
diff --git a/tdeparts/tests/normalktm.h b/tdeparts/tests/normalktm.h
index f60d490a6..962a71cc7 100644
--- a/tdeparts/tests/normalktm.h
+++ b/tdeparts/tests/normalktm.h
@@ -10,7 +10,7 @@ class TQWidget;
class Shell : public TDEMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
public:
Shell();
virtual ~Shell();
diff --git a/tdeparts/tests/notepad.cpp b/tdeparts/tests/notepad.cpp
index ad81b91b3..84de3ac1d 100644
--- a/tdeparts/tests/notepad.cpp
+++ b/tdeparts/tests/notepad.cpp
@@ -14,7 +14,7 @@
#include <tdeaction.h>
#include <tdelocale.h>
#include <kstatusbar.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
NotepadPart::NotepadPart( TQWidget* parentWidget, const char*,
TQObject* parent, const char* name,
@@ -26,7 +26,7 @@ NotepadPart::NotepadPart( TQWidget* parentWidget, const char*,
m_edit = new TQMultiLineEdit( parentWidget, "NotepadPart's multiline edit" );
setWidget( m_edit );
- (void)new TDEAction( "Search and replace", 0, this, TQT_SLOT( slotSearchReplace() ), actionCollection(), "searchreplace" );
+ (void)new TDEAction( "Search and replace", 0, this, TQ_SLOT( slotSearchReplace() ), actionCollection(), "searchreplace" );
setXMLFile( "notepadpart.rc" );
setReadWrite( true );
}
@@ -39,9 +39,9 @@ void NotepadPart::setReadWrite( bool rw )
{
m_edit->setReadOnly( !rw );
if (rw)
- connect( m_edit, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( setModified() ) );
+ connect( m_edit, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( setModified() ) );
else
- disconnect( m_edit, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( setModified() ) );
+ disconnect( m_edit, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( setModified() ) );
ReadWritePart::setReadWrite( rw );
}
diff --git a/tdeparts/tests/notepad.h b/tdeparts/tests/notepad.h
index bd502599b..25d452fac 100644
--- a/tdeparts/tests/notepad.h
+++ b/tdeparts/tests/notepad.h
@@ -15,7 +15,7 @@ class TQMultiLineEdit;
*/
class NotepadPart : public KParts::ReadWritePart
{
- Q_OBJECT
+ TQ_OBJECT
public:
NotepadPart( TQWidget*, const char* widgetName,
TQObject* parent, const char* name,
diff --git a/tdeparts/tests/parts.h b/tdeparts/tests/parts.h
index 37af4911e..b2e8d2ee9 100644
--- a/tdeparts/tests/parts.h
+++ b/tdeparts/tests/parts.h
@@ -11,7 +11,7 @@ class GUIActivateEvent;
class Part1 : public KParts::ReadOnlyPart
{
- Q_OBJECT
+ TQ_OBJECT
public:
Part1( TQObject *parent, TQWidget * parentWidget );
virtual ~Part1();
@@ -26,7 +26,7 @@ protected:
class Part2 : public KParts::Part
{
- Q_OBJECT
+ TQ_OBJECT
public:
Part2( TQObject *parent, TQWidget * parentWidget );
virtual ~Part2();
diff --git a/tdeparts/tests/plugin_spellcheck.cpp b/tdeparts/tests/plugin_spellcheck.cpp
index ae7af326f..927bc9123 100644
--- a/tdeparts/tests/plugin_spellcheck.cpp
+++ b/tdeparts/tests/plugin_spellcheck.cpp
@@ -11,7 +11,7 @@ PluginSpellCheck::PluginSpellCheck( TQObject* parent, const char* name,
const TQStringList& )
: Plugin( parent, name )
{
- (void) new TDEAction( "&Select current line (plugin)", 0, this, TQT_SLOT(slotSpellCheck()),
+ (void) new TDEAction( "&Select current line (plugin)", 0, this, TQ_SLOT(slotSpellCheck()),
actionCollection(), "tools-check-spelling" );
}
diff --git a/tdeparts/tests/plugin_spellcheck.h b/tdeparts/tests/plugin_spellcheck.h
index d27966c0c..3c7506c5c 100644
--- a/tdeparts/tests/plugin_spellcheck.h
+++ b/tdeparts/tests/plugin_spellcheck.h
@@ -5,7 +5,7 @@
class PluginSpellCheck : public KParts::Plugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
PluginSpellCheck( TQObject* parent = 0, const char* name = 0,
const TQStringList& = TQStringList() );