summaryrefslogtreecommitdiffstats
path: root/kugar/part/kugar_view.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kugar/part/kugar_view.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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 'kugar/part/kugar_view.cpp')
-rw-r--r--kugar/part/kugar_view.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kugar/part/kugar_view.cpp b/kugar/part/kugar_view.cpp
index 14a32bcae..28f0d871a 100644
--- a/kugar/part/kugar_view.cpp
+++ b/kugar/part/kugar_view.cpp
@@ -12,10 +12,10 @@
#include <kstdaction.h>
#include <kmessagebox.h>
#include <kio/netaccess.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <kglobal.h>
#include <kiconloader.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#if defined(HAVE_CONFIG_H)
#include "config.h"
@@ -28,15 +28,15 @@
// The view ctor.
-KugarView::KugarView( KugarPart *part, QWidget *parent, const char *name )
- : KoView( part, parent, name )
+KugarView::KugarView( KugarPart *part, TQWidget *tqparent, const char *name )
+ : KoView( part, tqparent, name )
{
setInstance( KugarFactory::global() );
- ( new QVBoxLayout( this ) ) ->setAutoAdd( true );
+ ( new TQVBoxLayout( this ) ) ->setAutoAdd( true );
view = new Kugar::MReportViewer( part->reportEngine(), this );
- view -> setFocusPolicy( QWidget::ClickFocus );
+ view -> setFocusPolicy( TQ_ClickFocus );
view -> show();
// setWidget(view);
@@ -46,10 +46,10 @@ KugarView::KugarView( KugarPart *part, QWidget *parent, const char *name )
// Define the actions.
- KStdAction::prior( view, SLOT( slotPrevPage() ), actionCollection(), "kuPrevPage" );
- KStdAction::next( view, SLOT( slotNextPage() ), actionCollection(), "kuNextPage" );
- KStdAction::firstPage( view, SLOT( slotFirstPage() ), actionCollection(), "kuFirstPage" );
- KStdAction::lastPage( view, SLOT( slotLastPage() ), actionCollection(), "kuLastPage" );
+ KStdAction::prior( TQT_TQOBJECT(view), TQT_SLOT( slotPrevPage() ), actionCollection(), "kuPrevPage" );
+ KStdAction::next( TQT_TQOBJECT(view), TQT_SLOT( slotNextPage() ), actionCollection(), "kuNextPage" );
+ KStdAction::firstPage( TQT_TQOBJECT(view), TQT_SLOT( slotFirstPage() ), actionCollection(), "kuFirstPage" );
+ KStdAction::lastPage( TQT_TQOBJECT(view), TQT_SLOT( slotLastPage() ), actionCollection(), "kuLastPage" );
setXMLFile( "kugarpart.rc" );
@@ -80,7 +80,7 @@ void KugarView::print( KPrinter &printer )
bool KugarPart::openFile()
{
bool ok = false;
- QFile f( m_file );
+ TQFile f( m_file );
if ( f.open( IO_ReadOnly ) )
{
@@ -90,12 +90,12 @@ bool KugarPart::openFile()
ok = true;
}
else
- KMessageBox::sorry( this, i18n( "Invalid data file: %1" ).arg( m_file ) );
+ KMessageBox::sorry( this, i18n( "Invalid data file: %1" ).tqarg( m_file ) );
f.close();
}
else
- KMessageBox::sorry( this, i18n( "Unable to open data file: %1" ).arg( m_file ) );
+ KMessageBox::sorry( this, i18n( "Unable to open data file: %1" ).tqarg( m_file ) );
return ok;
}