diff options
Diffstat (limited to 'kugar/part/kugar_view.cpp')
-rw-r--r-- | kugar/part/kugar_view.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kugar/part/kugar_view.cpp b/kugar/part/kugar_view.cpp index 14a32bca..28f0d871 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; } |