diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /example/example_view.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
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
Diffstat (limited to 'example/example_view.cc')
-rw-r--r-- | example/example_view.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/example/example_view.cc b/example/example_view.cc index 2e97a206..b23412c6 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 |