summaryrefslogtreecommitdiffstats
path: root/example/example_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'example/example_view.cc')
-rw-r--r--example/example_view.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/example/example_view.cc b/example/example_view.cc
index 2e97a2065..b23412c6c 100644
--- a/example/example_view.cc
+++ b/example/example_view.cc
@@ -21,31 +21,31 @@
#include "example_factory.h"
#include "example_part.h"
-#include <qpainter.h>
-#include <qiconset.h>
+#include <tqpainter.h>
+#include <tqiconset.h>
#include <kaction.h>
#include <kstdaction.h>
#include <klocale.h>
#include <kdebug.h>
-ExampleView::ExampleView( ExamplePart* part, QWidget* parent, const char* name )
- : KoView( part, parent, name )
+ExampleView::ExampleView( ExamplePart* part, TQWidget* tqparent, const char* name )
+ : KoView( part, tqparent, name )
{
setInstance( ExampleFactory::global() );
if ( !part->isReadWrite() ) // readonly case, e.g. when embedded into konqueror
setXMLFile( "example_readonly.rc" ); // simplified GUI
else
setXMLFile( "example.rc" );
- KStdAction::copy(this, SLOT( copy() ), actionCollection(), "copy" );
- KStdAction::cut(this, SLOT( cut() ), actionCollection(), "cut" );
+ KStdAction::copy(this, TQT_SLOT( copy() ), actionCollection(), "copy" );
+ KStdAction::cut(this, TQT_SLOT( cut() ), actionCollection(), "cut" );
// Note: Prefer KStdAction::* to any custom action if possible.
- //m_cut = new KAction( i18n("&Cut"), "editcut", 0, this, SLOT( cut() ),
+ //m_cut = new KAction( i18n("&Cut"), "editcut", 0, this, TQT_SLOT( cut() ),
// actionCollection(), "cut");
}
-void ExampleView::paintEvent( QPaintEvent* ev )
+void ExampleView::paintEvent( TQPaintEvent* ev )
{
- QPainter painter;
+ TQPainter painter;
painter.begin( this );
// ### TODO: Scaling