From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: TQt4 port koffice This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- example/example_view.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'example/example_view.cc') 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 -#include +#include +#include #include #include #include #include -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 -- cgit v1.2.3