diff options
Diffstat (limited to 'kghostview/kgvshell.cpp')
-rw-r--r-- | kghostview/kgvshell.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kghostview/kgvshell.cpp b/kghostview/kgvshell.cpp index 1dc546d5..708921ab 100644 --- a/kghostview/kgvshell.cpp +++ b/kghostview/kgvshell.cpp @@ -42,7 +42,7 @@ #include <kwin.h> -#include <qcursor.h> +#include <tqcursor.h> #include "kgv_miniwidget.h" #include "kgv_view.h" @@ -64,25 +64,25 @@ KGVShell::KGVShell() : /*---- File -----------------------------------------------------------*/ openact = - KStdAction::open( this, SLOT( slotFileOpen() ), + KStdAction::open( this, TQT_SLOT( slotFileOpen() ), actionCollection() ); recent = - KStdAction::openRecent( this, SLOT( openURL( const KURL& ) ), + KStdAction::openRecent( this, TQT_SLOT( openURL( const KURL& ) ), actionCollection() ); - KStdAction::print( m_gvpart->document(), SLOT( print() ), + KStdAction::print( m_gvpart->document(), TQT_SLOT( print() ), actionCollection() ); (void) - KStdAction::quit( this, SLOT( slotQuit() ), actionCollection() ); + KStdAction::quit( this, TQT_SLOT( slotQuit() ), actionCollection() ); /*---- View -----------------------------------------------------------*/ new KAction( i18n( "&Reload" ), "reload", KStdAccel::shortcut( KStdAccel::Reload ), - m_gvpart, SLOT( reloadFile() ), + m_gvpart, TQT_SLOT( reloadFile() ), actionCollection(), "reload" ); new KAction( i18n( "&Maximize" ), Key_M, this, - SLOT( slotMaximize() ), actionCollection(), + TQT_SLOT( slotMaximize() ), actionCollection(), "maximize"); - _showMenuBarAction = KStdAction::showMenubar( this, SLOT( slotShowMenubar() ), actionCollection() ); + _showMenuBarAction = KStdAction::showMenubar( this, TQT_SLOT( slotShowMenubar() ), actionCollection() ); /*---- Settings -------------------------------------------------------*/ #if KDE_VERSION >= KDE_MAKE_VERSION(3,1,90) @@ -91,12 +91,12 @@ KGVShell::KGVShell() : setAutoSaveSettings(); setStandardToolBarMenuEnabled(true); #if KDE_VERSION >= KDE_MAKE_VERSION(3,1,90) - m_fullScreenAction = KStdAction::fullScreen( this, SLOT( slotUpdateFullScreen() ), actionCollection(), this ); + m_fullScreenAction = KStdAction::fullScreen( this, TQT_SLOT( slotUpdateFullScreen() ), actionCollection(), this ); #else - m_fullScreenAction = new KToggleAction( this, SLOT( slotUpdateFullScreen() ) ); + m_fullScreenAction = new KToggleAction( this, TQT_SLOT( slotUpdateFullScreen() ) ); #endif - KStdAction::configureToolbars( this, SLOT( slotConfigureToolbars() ), actionCollection() ); - KStdAction::keyBindings(guiFactory(), SLOT(configureShortcuts()), + KStdAction::configureToolbars( this, TQT_SLOT( slotConfigureToolbars() ), actionCollection() ); + KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()), actionCollection()); //_popup = new KPopupMenu( i18n( "Full Screen Options" ), this, "rmb popup" ); @@ -108,21 +108,21 @@ actionCollection()); m_fsFilter = new FullScreenFilter( *this ); // Just save them automatically is destructor. (TODO: of kgv_view!) - //KStdAction::saveOptions ( this, SLOT (slotWriteSettings()), actionCollection()); + //KStdAction::saveOptions ( this, TQT_SLOT (slotWriteSettings()), actionCollection()); setXMLFile( "kghostviewui.rc" ); // We could, at the user's option, make this connection and kghostview // will always resize to fit the width of the page. But, for now, // let's not. - // connect ( m_gvpart->widget(), SIGNAL (sizeHintChanged()), this, SLOT (slotResize ()) ); + // connect ( m_gvpart->widget(), TQT_SIGNAL (sizeHintChanged()), this, TQT_SLOT (slotResize ()) ); setCentralWidget( m_gvpart->widget() ); createGUI( m_gvpart ); - connect( m_gvpart->pageView(), SIGNAL( rightClick() ),SLOT( slotRMBClick() ) ); - connect( m_gvpart, SIGNAL( canceled(const QString&) ),SLOT( slotReset() ) ); - connect( m_gvpart, SIGNAL( completed() ), SLOT( slotDocumentState() ) ); + connect( m_gvpart->pageView(), TQT_SIGNAL( rightClick() ),TQT_SLOT( slotRMBClick() ) ); + connect( m_gvpart, TQT_SIGNAL( canceled(const TQString&) ),TQT_SLOT( slotReset() ) ); + connect( m_gvpart, TQT_SIGNAL( completed() ), TQT_SLOT( slotDocumentState() ) ); if (!initialGeometrySet()) resize(640,400); @@ -194,17 +194,17 @@ void KGVShell::readSettings() { recent->loadEntries( KGlobal::config() ); - QStringList items = recent->items(); + TQStringList items = recent->items(); // Code copied from kviewshell.cpp: // Constant source of annoyance in KDVI < 1.0: the 'recent-files' // menu contains lots of files which don't exist (any longer). Thus, // we'll sort out the non-existent files here. - for ( QStringList::Iterator it = items.begin(); it != items.end(); ++it ) { + for ( TQStringList::Iterator it = items.begin(); it != items.end(); ++it ) { KURL url(*it); if (url.isLocalFile()) { - QFileInfo info(url.path()); + TQFileInfo info(url.path()); if (!info.exists()) recent->removeURL(url); } @@ -256,7 +256,7 @@ KGVShell::openStdin() return; } - QByteArray buf( BUFSIZ ); + TQByteArray buf( BUFSIZ ); int read = 0, wrtn = 0; while( ( read = fread( buf.data(), sizeof(char), buf.size(), stdin ) ) > 0 ) { @@ -304,7 +304,7 @@ void KGVShell::slotMaximize() KWin::setState( winId(), NET::MaxHoriz | NET::MaxVert ); // If we do it now, it comes to nothing since it would work // on the current (non-maximized) size - QTimer::singleShot( 800, m_gvpart, SLOT( slotFitToPage() ) ); + TQTimer::singleShot( 800, m_gvpart, TQT_SLOT( slotFitToPage() ) ); } void KGVShell::slotResize() @@ -352,7 +352,7 @@ void KGVShell::slotConfigureToolbars() { saveMainWindowSettings( KGlobal::config(), "MainWindow" ); KEditToolbar dlg( factory() ); - connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(slotNewToolbarConfig())); + connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(slotNewToolbarConfig())); dlg.exec(); } @@ -363,7 +363,7 @@ void KGVShell::slotNewToolbarConfig() void KGVShell::slotRMBClick() { - _popup->exec( QCursor::pos() ); + _popup->exec( TQCursor::pos() ); } |