summaryrefslogtreecommitdiffstats
path: root/kview
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 12:34:35 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 12:43:12 +0900
commitc616fab9053b07ed30508ab714de876409d82653 (patch)
tree02b8b0fd20d25a2607a2173186a5e4acd016cb62 /kview
parent7cf662aaa0828773212e35d6842cffd0aa2c509f (diff)
downloadtdegraphics-c616fab9053b07ed30508ab714de876409d82653.tar.gz
tdegraphics-c616fab9053b07ed30508ab714de876409d82653.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kview')
-rw-r--r--kview/config/kviewconfmodules.cpp2
-rw-r--r--kview/kimageviewer/canvas.h4
-rw-r--r--kview/kview.cpp96
-rw-r--r--kview/kviewcanvas/config/confmodules.cpp22
-rw-r--r--kview/kviewcanvas/kimagecanvas.cpp16
-rw-r--r--kview/kviewviewer/kviewviewer.cpp90
-rw-r--r--kview/modules/browser/kviewbrowser.cpp8
-rw-r--r--kview/modules/effects/kvieweffects.cpp26
-rw-r--r--kview/modules/presenter/config/kviewpresenterconfig.cpp2
-rw-r--r--kview/modules/presenter/kviewpresenter.cpp74
-rw-r--r--kview/modules/scale/kfloatspinbox.cpp2
-rw-r--r--kview/modules/scale/kview_scale.cpp2
-rw-r--r--kview/modules/scale/scaledlg.cpp20
-rw-r--r--kview/modules/scanner/kviewscanner.cpp6
-rw-r--r--kview/modules/template/kviewtemplate.cpp2
-rw-r--r--kview/photobook/photobook.cpp34
16 files changed, 203 insertions, 203 deletions
diff --git a/kview/config/kviewconfmodules.cpp b/kview/config/kviewconfmodules.cpp
index 1c2bcec5..2889e4d4 100644
--- a/kview/config/kviewconfmodules.cpp
+++ b/kview/config/kviewconfmodules.cpp
@@ -39,7 +39,7 @@ KViewGeneralConfig::KViewGeneralConfig( TQWidget * parent, const char * /*name*/
m_pResizeGroup = new TQVButtonGroup( i18n( "Resizing" ), this );
m_pResizeGroup->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) );
- connect( m_pResizeGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( resizeChanged( int ) ) );
+ connect( m_pResizeGroup, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( resizeChanged( int ) ) );
layout->addWidget( m_pResizeGroup );
( void )new TQRadioButton( i18n( "Only resize window" ), m_pResizeGroup );
diff --git a/kview/kimageviewer/canvas.h b/kview/kimageviewer/canvas.h
index dbbc1205..b697c01e 100644
--- a/kview/kimageviewer/canvas.h
+++ b/kview/kimageviewer/canvas.h
@@ -55,8 +55,8 @@ namespace KImageViewer
kapp->quit();
}
setCentralWidget( widget );
- connect( widget, TQT_SIGNAL( contextPress( const TQPoint & ) ), TQT_SLOT( mySlot( const TQPoint & ) ) );
- connect( m_canvas->widget(), TQT_SIGNAL( contextPress( const TQPoint & ) ), TQT_SLOT( mySlot( const TQPoint & ) ) );
+ connect( widget, TQ_SIGNAL( contextPress( const TQPoint & ) ), TQ_SLOT( mySlot( const TQPoint & ) ) );
+ connect( m_canvas->widget(), TQ_SIGNAL( contextPress( const TQPoint & ) ), TQ_SLOT( mySlot( const TQPoint & ) ) );
</pre>
*
* You can't connect signals or slots using KImageViewer::Canvas, because this interface
diff --git a/kview/kview.cpp b/kview/kview.cpp
index 33b57312..34dd83ee 100644
--- a/kview/kview.cpp
+++ b/kview/kview.cpp
@@ -82,28 +82,28 @@ KView::KView()
setStandardToolBarMenuEnabled( true );
- connect( part->widget(), TQT_SIGNAL( imageSizeChanged( const TQSize & ) ),
- TQT_SLOT( imageSizeChanged( const TQSize & ) ) );
- connect( part->widget(), TQT_SIGNAL( selectionChanged( const TQRect & ) ),
- TQT_SLOT( selectionChanged( const TQRect & ) ) );
- connect( part->widget(), TQT_SIGNAL( contextPress( const TQPoint & ) ),
- TQT_SLOT( contextPress( const TQPoint & ) ) );
-
- connect( TQApplication::clipboard(), TQT_SIGNAL( dataChanged() ),
- TQT_SLOT( clipboardDataChanged() ) );
-
- connect( m_pViewer, TQT_SIGNAL( started( TDEIO::Job * ) ),
- this, TQT_SLOT( jobStarted( TDEIO::Job * ) ) );
- connect( m_pViewer, TQT_SIGNAL( completed() ),
- this, TQT_SLOT( jobCompleted() ) );
- connect( m_pViewer, TQT_SIGNAL( completed( bool ) ),
- this, TQT_SLOT( jobCompleted( bool ) ) );
- connect( m_pViewer, TQT_SIGNAL( canceled( const TQString & ) ),
- this, TQT_SLOT( jobCanceled( const TQString & ) ) );
- connect( m_pViewer, TQT_SIGNAL( imageOpened( const KURL & ) ),
- m_paRecent, TQT_SLOT( addURL( const KURL & ) ) );
-
- connect( m_pCanvas->widget(), TQT_SIGNAL( cursorPos( const TQPoint & ) ), TQT_SLOT( cursorPos( const TQPoint & ) ) );
+ connect( part->widget(), TQ_SIGNAL( imageSizeChanged( const TQSize & ) ),
+ TQ_SLOT( imageSizeChanged( const TQSize & ) ) );
+ connect( part->widget(), TQ_SIGNAL( selectionChanged( const TQRect & ) ),
+ TQ_SLOT( selectionChanged( const TQRect & ) ) );
+ connect( part->widget(), TQ_SIGNAL( contextPress( const TQPoint & ) ),
+ TQ_SLOT( contextPress( const TQPoint & ) ) );
+
+ connect( TQApplication::clipboard(), TQ_SIGNAL( dataChanged() ),
+ TQ_SLOT( clipboardDataChanged() ) );
+
+ connect( m_pViewer, TQ_SIGNAL( started( TDEIO::Job * ) ),
+ this, TQ_SLOT( jobStarted( TDEIO::Job * ) ) );
+ connect( m_pViewer, TQ_SIGNAL( completed() ),
+ this, TQ_SLOT( jobCompleted() ) );
+ connect( m_pViewer, TQ_SIGNAL( completed( bool ) ),
+ this, TQ_SLOT( jobCompleted( bool ) ) );
+ connect( m_pViewer, TQ_SIGNAL( canceled( const TQString & ) ),
+ this, TQ_SLOT( jobCanceled( const TQString & ) ) );
+ connect( m_pViewer, TQ_SIGNAL( imageOpened( const KURL & ) ),
+ m_paRecent, TQ_SLOT( addURL( const KURL & ) ) );
+
+ connect( m_pCanvas->widget(), TQ_SIGNAL( cursorPos( const TQPoint & ) ), TQ_SLOT( cursorPos( const TQPoint & ) ) );
m_paRecent->loadEntries( TDEGlobal::config() );
if (!initialGeometrySet())
@@ -112,7 +112,7 @@ KView::KView()
m_pViewer->widget()->installEventFilter( this );
// reload configuration when it's changed by the conf dlg
- KSettings::Dispatcher::self()->registerInstance( instance(), this, TQT_SLOT( readSettings() ) );
+ KSettings::Dispatcher::self()->registerInstance( instance(), this, TQ_SLOT( readSettings() ) );
setPluginLoadingMode( LoadPluginsIfEnabled );
createGUI( part );
@@ -145,7 +145,7 @@ KView::KView()
else
{
KMessageBox::error( this, i18n( "An error occurred while loading the KViewViewer KPart. Check your installation." ) );
- TQTimer::singleShot( 0, kapp, TQT_SLOT( quit() ) );
+ TQTimer::singleShot( 0, kapp, TQ_SLOT( quit() ) );
}
}
@@ -387,7 +387,7 @@ void KView::slotConfigureToolbars()
{
saveMainWindowSettings( TDEGlobal::config(), "MainWindow" );
KEditToolbar dlg( factory() );
- connect( &dlg, TQT_SIGNAL( newToolbarConfig() ), TQT_SLOT( slotNewToolbarConfig() ) );
+ connect( &dlg, TQ_SIGNAL( newToolbarConfig() ), TQ_SLOT( slotNewToolbarConfig() ) );
dlg.exec();
}
@@ -422,9 +422,9 @@ void KView::jobStarted( TDEIO::Job * job )
{
if( job )
{
- connect( job, TQT_SIGNAL( percent( TDEIO::Job *, unsigned long ) ), this, TQT_SLOT( loadingProgress( TDEIO::Job *, unsigned long ) ) );
- connect( job, TQT_SIGNAL( speed( TDEIO::Job *, unsigned long ) ), this, TQT_SLOT( speedProgress( TDEIO::Job *, unsigned long ) ) );
- //connect( job, TQT_SIGNAL( infoMessage( TDEIO::Job *, const TQString & ) ), this, TQT_SLOT() );
+ connect( job, TQ_SIGNAL( percent( TDEIO::Job *, unsigned long ) ), this, TQ_SLOT( loadingProgress( TDEIO::Job *, unsigned long ) ) );
+ connect( job, TQ_SIGNAL( speed( TDEIO::Job *, unsigned long ) ), this, TQ_SLOT( speedProgress( TDEIO::Job *, unsigned long ) ) );
+ //connect( job, TQ_SIGNAL( infoMessage( TDEIO::Job *, const TQString & ) ), this, TQ_SLOT() );
loadingProgress( job, 0 );
speedProgress( job, 0 );
}
@@ -489,51 +489,51 @@ void KView::cursorPos( const TQPoint & pos )
void KView::setupActions( TQObject * partobject )
{
// File
- KStdAction::open( this, TQT_SLOT( slotOpenFile() ), actionCollection() );
- m_paRecent = KStdAction::openRecent( this, TQT_SLOT( slotOpenRecent( const KURL & ) ), actionCollection() );
- TDEAction * aClose = KStdAction::close( this, TQT_SLOT( slotClose() ), actionCollection() );
+ KStdAction::open( this, TQ_SLOT( slotOpenFile() ), actionCollection() );
+ m_paRecent = KStdAction::openRecent( this, TQ_SLOT( slotOpenRecent( const KURL & ) ), actionCollection() );
+ TDEAction * aClose = KStdAction::close( this, TQ_SLOT( slotClose() ), actionCollection() );
aClose->setEnabled( false );
- connect( m_pViewer->widget(), TQT_SIGNAL( hasImage( bool ) ), aClose, TQT_SLOT( setEnabled( bool ) ) );
+ connect( m_pViewer->widget(), TQ_SIGNAL( hasImage( bool ) ), aClose, TQ_SLOT( setEnabled( bool ) ) );
TQObject * extension = partobject->child( 0, "KParts::BrowserExtension", false );
if( extension )
{
TQStrList slotNames = extension->metaObject()->slotNames();
if( slotNames.contains( "print()" ) )
- KStdAction::print( extension, TQT_SLOT( print() ), actionCollection(), "print" );
+ KStdAction::print( extension, TQ_SLOT( print() ), actionCollection(), "print" );
if( slotNames.contains( "del()" ) )
( void )new TDEAction( i18n( "&Delete" ), "edit-delete", SHIFT+Key_Delete,
- extension, TQT_SLOT( del() ), actionCollection(), "del" );
- connect( extension, TQT_SIGNAL( enableAction( const char *, bool ) ), TQT_SLOT( enableAction( const char *, bool ) ) );
+ extension, TQ_SLOT( del() ), actionCollection(), "del" );
+ connect( extension, TQ_SIGNAL( enableAction( const char *, bool ) ), TQ_SLOT( enableAction( const char *, bool ) ) );
}
- KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() );
+ KStdAction::quit( this, TQ_SLOT( close() ), actionCollection() );
// Edit
- TDEAction * aCopy = KStdAction::copy( this, TQT_SLOT( slotCopy() ), actionCollection() );
+ TDEAction * aCopy = KStdAction::copy( this, TQ_SLOT( slotCopy() ), actionCollection() );
aCopy->setEnabled( false );
- connect( m_pViewer->widget(), TQT_SIGNAL( hasImage( bool ) ), aCopy, TQT_SLOT( setEnabled( bool ) ) );
- m_paPaste = KStdAction::paste( this, TQT_SLOT( slotPaste() ), actionCollection() );
+ connect( m_pViewer->widget(), TQ_SIGNAL( hasImage( bool ) ), aCopy, TQ_SLOT( setEnabled( bool ) ) );
+ m_paPaste = KStdAction::paste( this, TQ_SLOT( slotPaste() ), actionCollection() );
clipboardDataChanged(); //enable or disable paste
- TDEAction * aCrop = new TDEAction( i18n( "Cr&op" ), Key_C, this, TQT_SLOT( slotCrop() ), actionCollection(), "crop" );
+ TDEAction * aCrop = new TDEAction( i18n( "Cr&op" ), Key_C, this, TQ_SLOT( slotCrop() ), actionCollection(), "crop" );
aCrop->setEnabled( false );
TDEAction * aReload = new TDEAction( i18n( "&Reload" ), "reload", TDEStdAccel::shortcut( TDEStdAccel::Reload ), partobject,
- TQT_SLOT( reload() ), actionCollection(), "reload" );
+ TQ_SLOT( reload() ), actionCollection(), "reload" );
aReload->setEnabled( false );
- connect( m_pViewer->widget(), TQT_SIGNAL( hasImage( bool ) ), aReload, TQT_SLOT( setEnabled( bool ) ) );
+ connect( m_pViewer->widget(), TQ_SIGNAL( hasImage( bool ) ), aReload, TQ_SLOT( setEnabled( bool ) ) );
// Settings
- m_paShowMenubar = KStdAction::showMenubar( this, TQT_SLOT( slotToggleMenubar() ), actionCollection() );
+ m_paShowMenubar = KStdAction::showMenubar( this, TQ_SLOT( slotToggleMenubar() ), actionCollection() );
createStandardStatusBarAction();
m_paShowStatusBar = ::tqt_cast<TDEToggleAction*>( action( "options_show_statusbar" ) );
if( m_paShowStatusBar )
- connect( m_paShowStatusBar, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( statusbarToggled( bool ) ) );
+ connect( m_paShowStatusBar, TQ_SIGNAL( toggled( bool ) ), TQ_SLOT( statusbarToggled( bool ) ) );
m_paShowFullScreen = KStdAction::fullScreen( 0, 0, actionCollection(), this );
- connect( m_paShowFullScreen, TQT_SIGNAL( toggled( bool )), this, TQT_SLOT( slotUpdateFullScreen( bool )));
- KStdAction::preferences( this, TQT_SLOT( slotPreferences() ), actionCollection() );
- KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()),
+ connect( m_paShowFullScreen, TQ_SIGNAL( toggled( bool )), this, TQ_SLOT( slotUpdateFullScreen( bool )));
+ KStdAction::preferences( this, TQ_SLOT( slotPreferences() ), actionCollection() );
+ KStdAction::keyBindings(guiFactory(), TQ_SLOT(configureShortcuts()),
actionCollection());
- KStdAction::configureToolbars( this, TQT_SLOT( slotConfigureToolbars() ), actionCollection() );
+ KStdAction::configureToolbars( this, TQ_SLOT( slotConfigureToolbars() ), actionCollection() );
}
void KView::handleResize()
diff --git a/kview/kviewcanvas/config/confmodules.cpp b/kview/kviewcanvas/config/confmodules.cpp
index ec43813b..d9cf9669 100644
--- a/kview/kviewcanvas/config/confmodules.cpp
+++ b/kview/kviewcanvas/config/confmodules.cpp
@@ -56,17 +56,17 @@ KViewCanvasConfig::KViewCanvasConfig( TQWidget * parent, const char *, const TQS
m_items.append( item );
}
- connect( m_pWidget->m_pListView, TQT_SIGNAL( clicked( TQListViewItem * ) ), this, TQT_SLOT( configChanged() ) );
- connect( m_pWidget->m_pListView, TQT_SIGNAL( spacePressed( TQListViewItem * ) ), this, TQT_SLOT( configChanged() ) );
-
- connect( m_pWidget->m_pSmoothScaling, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( configChanged() ) );
- connect( m_pWidget->m_pKeepRatio, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( configChanged() ) );
- connect( m_pWidget->m_pCenterImage, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( configChanged() ) );
- connect( m_pWidget->m_bgColor, TQT_SIGNAL( changed( const TQColor & ) ), this, TQT_SLOT( configChanged() ) );
- connect( m_pWidget->m_pMinWidth, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( configChanged() ) );
- connect( m_pWidget->m_pMaxWidth, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( configChanged() ) );
- connect( m_pWidget->m_pMinHeight, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( configChanged() ) );
- connect( m_pWidget->m_pMaxHeight, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( configChanged() ) );
+ connect( m_pWidget->m_pListView, TQ_SIGNAL( clicked( TQListViewItem * ) ), this, TQ_SLOT( configChanged() ) );
+ connect( m_pWidget->m_pListView, TQ_SIGNAL( spacePressed( TQListViewItem * ) ), this, TQ_SLOT( configChanged() ) );
+
+ connect( m_pWidget->m_pSmoothScaling, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( configChanged() ) );
+ connect( m_pWidget->m_pKeepRatio, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( configChanged() ) );
+ connect( m_pWidget->m_pCenterImage, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( configChanged() ) );
+ connect( m_pWidget->m_bgColor, TQ_SIGNAL( changed( const TQColor & ) ), this, TQ_SLOT( configChanged() ) );
+ connect( m_pWidget->m_pMinWidth, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( configChanged() ) );
+ connect( m_pWidget->m_pMaxWidth, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( configChanged() ) );
+ connect( m_pWidget->m_pMinHeight, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( configChanged() ) );
+ connect( m_pWidget->m_pMaxHeight, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( configChanged() ) );
load();
}
diff --git a/kview/kviewcanvas/kimagecanvas.cpp b/kview/kviewcanvas/kimagecanvas.cpp
index 5b51acee..95406913 100644
--- a/kview/kviewcanvas/kimagecanvas.cpp
+++ b/kview/kviewcanvas/kimagecanvas.cpp
@@ -71,12 +71,12 @@ KImageCanvas::KImageCanvas( TQWidget * parent, const char * name, const TQString
setMinimumSize( 0, 0 );
setBgColor( Defaults::bgColor );
- connect( this, TQT_SIGNAL( imageChanged() ), this, TQT_SLOT( slotImageChanged() ) );
- connect( m_pTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( hideCursor() ) );
+ connect( this, TQ_SIGNAL( imageChanged() ), this, TQ_SLOT( slotImageChanged() ) );
+ connect( m_pTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( hideCursor() ) );
KSettings::Dispatcher::self()->registerInstance(
KImageCanvasFactory::instance(), this,
- TQT_SLOT( loadSettings() ) );
+ TQ_SLOT( loadSettings() ) );
viewport()->setFocusProxy( this );
clear();
@@ -517,7 +517,7 @@ void KImageCanvas::updateImage()
{
kdDebug( 4620 ) << k_funcinfo << endl;
if( ! m_bImageUpdateScheduled )
- TQTimer::singleShot( 0, this, TQT_SLOT( slotUpdateImage() ) );
+ TQTimer::singleShot( 0, this, TQ_SLOT( slotUpdateImage() ) );
m_bImageUpdateScheduled = true;
}
@@ -940,10 +940,10 @@ KImageHolder * KImageCanvas::createNewClient()
addChild( client, 0, 0 );
- connect( client, TQT_SIGNAL( contextPress( const TQPoint& ) ), TQT_SIGNAL( contextPress( const TQPoint& ) ) );
- connect( client, TQT_SIGNAL( cursorPos( const TQPoint & ) ), TQT_SLOT( mapCursorPos( const TQPoint & ) ) );
- connect( client, TQT_SIGNAL( selected( const TQRect & ) ), TQT_SLOT( selected( const TQRect & ) ) );
- connect( client, TQT_SIGNAL( wannaScroll( int, int ) ), TQT_SLOT( scrollBy( int, int ) ) );
+ connect( client, TQ_SIGNAL( contextPress( const TQPoint& ) ), TQ_SIGNAL( contextPress( const TQPoint& ) ) );
+ connect( client, TQ_SIGNAL( cursorPos( const TQPoint & ) ), TQ_SLOT( mapCursorPos( const TQPoint & ) ) );
+ connect( client, TQ_SIGNAL( selected( const TQRect & ) ), TQ_SLOT( selected( const TQRect & ) ) );
+ connect( client, TQ_SIGNAL( wannaScroll( int, int ) ), TQ_SLOT( scrollBy( int, int ) ) );
return client;
}
diff --git a/kview/kviewviewer/kviewviewer.cpp b/kview/kviewviewer/kviewviewer.cpp
index 48195506..a51d29e3 100644
--- a/kview/kviewviewer/kviewviewer.cpp
+++ b/kview/kviewviewer/kviewviewer.cpp
@@ -104,21 +104,21 @@ KViewViewer::KViewViewer( TQWidget *parentWidget, const char * /*widgetName*/,
else
setXMLFile( "kviewviewer_ro.rc" );
- connect( widget, TQT_SIGNAL( contextPress( const TQPoint & ) ),
- this, TQT_SLOT( slotPopupMenu( const TQPoint & ) ) );
- connect( widget, TQT_SIGNAL( zoomChanged( double ) ),
- this, TQT_SLOT( zoomChanged( double ) ) );
- connect( widget, TQT_SIGNAL( showingImageDone() ),
- this, TQT_SLOT( switchBlendEffect() ) );
- connect( widget, TQT_SIGNAL( hasImage( bool ) ),
- this, TQT_SLOT( hasImage( bool ) ) );
- connect( widget, TQT_SIGNAL( imageChanged() ),
- this, TQT_SLOT( setModified() ) );
-
- connect( m_pFileWatch, TQT_SIGNAL( dirty( const TQString & ) ),
- this, TQT_SLOT( slotFileDirty( const TQString & ) ) );
-
- KSettings::Dispatcher::self()->registerInstance( instance(), this, TQT_SLOT( readSettings() ) );
+ connect( widget, TQ_SIGNAL( contextPress( const TQPoint & ) ),
+ this, TQ_SLOT( slotPopupMenu( const TQPoint & ) ) );
+ connect( widget, TQ_SIGNAL( zoomChanged( double ) ),
+ this, TQ_SLOT( zoomChanged( double ) ) );
+ connect( widget, TQ_SIGNAL( showingImageDone() ),
+ this, TQ_SLOT( switchBlendEffect() ) );
+ connect( widget, TQ_SIGNAL( hasImage( bool ) ),
+ this, TQ_SLOT( hasImage( bool ) ) );
+ connect( widget, TQ_SIGNAL( imageChanged() ),
+ this, TQ_SLOT( setModified() ) );
+
+ connect( m_pFileWatch, TQ_SIGNAL( dirty( const TQString & ) ),
+ this, TQ_SLOT( slotFileDirty( const TQString & ) ) );
+
+ KSettings::Dispatcher::self()->registerInstance( instance(), this, TQ_SLOT( readSettings() ) );
// by default disable progress info (so it won't open the dialog in Konqueror)
setProgressInfoEnabled( false );
@@ -202,8 +202,8 @@ bool KViewViewer::saveAs( const KURL & kurl )
TDEIO::Job * job = TDEIO::copy( KURL( m_file ), kurl, isProgressInfoEnabled() );
emit started( job );
- connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
- this, TQT_SLOT( slotResultSaveAs( TDEIO::Job * ) ) );
+ connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ),
+ this, TQ_SLOT( slotResultSaveAs( TDEIO::Job * ) ) );
return true;
}
kdDebug( 4610 ) << "call KParts::ReadWritePart::saveAs( " << kurl.prettyURL() << " )" << endl;
@@ -268,8 +268,8 @@ bool KViewViewer::openURL( const KURL & url )
m_pJob = TDEIO::get( m_url, m_pExtension->urlArgs().reload, isProgressInfoEnabled() );
emit started( m_pJob );
- connect( m_pJob, TQT_SIGNAL( result( TDEIO::Job * ) ), TQT_SLOT( slotJobFinished ( TDEIO::Job * ) ) );
- connect( m_pJob, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), TQT_SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( m_pJob, TQ_SIGNAL( result( TDEIO::Job * ) ), TQ_SLOT( slotJobFinished ( TDEIO::Job * ) ) );
+ connect( m_pJob, TQ_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), TQ_SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
return true;
}
}
@@ -466,33 +466,33 @@ bool KViewViewer::saveFile()
void KViewViewer::setupActions()
{
m_paZoomIn = new TDEAction( i18n( "Zoom In" ), "zoom-in", TDEStdAccel::shortcut( TDEStdAccel::ZoomIn ), this,
- TQT_SLOT( slotZoomIn() ), actionCollection(), "zoomin" );
+ TQ_SLOT( slotZoomIn() ), actionCollection(), "zoomin" );
m_paZoomOut = new TDEAction( i18n( "Zoom Out" ), "zoom-out", TDEStdAccel::shortcut( TDEStdAccel::ZoomOut ), this,
- TQT_SLOT( slotZoomOut() ), actionCollection(), "zoomout" );
+ TQ_SLOT( slotZoomOut() ), actionCollection(), "zoomout" );
m_paZoom = new TDESelectAction( i18n( "Zoom" ), "viewmag", 0, actionCollection(), "view_zoom" );
- connect( m_paZoom, TQT_SIGNAL( activated( const TQString & ) ), this, TQT_SLOT( setZoom( const TQString & ) ) );
+ connect( m_paZoom, TQ_SIGNAL( activated( const TQString & ) ), this, TQ_SLOT( setZoom( const TQString & ) ) );
m_paZoom->setEditable( true );
m_paZoom->clear();
m_paZoom->setItems( TQStringList::split( '|', "20%|25%|33%|50%|75%|100%|125%|150%|200%|250%|300%|350%|400%|450%|500%" ) );
m_paZoom->setCurrentItem( 5 );
m_paFlipMenu = new TDEActionMenu( i18n( "&Flip" ), actionCollection(), "flip" );
- m_paFlipV = new TDEAction( i18n( "&Vertical" ), Key_V, this, TQT_SLOT( slotFlipV() ), actionCollection(), "flip_vertical" );
- m_paFlipH = new TDEAction( i18n( "&Horizontal" ), Key_H, this, TQT_SLOT( slotFlipH() ), actionCollection(), "flip_horizontal" );
+ m_paFlipV = new TDEAction( i18n( "&Vertical" ), Key_V, this, TQ_SLOT( slotFlipV() ), actionCollection(), "flip_vertical" );
+ m_paFlipH = new TDEAction( i18n( "&Horizontal" ), Key_H, this, TQ_SLOT( slotFlipH() ), actionCollection(), "flip_horizontal" );
m_paFlipMenu->insert( m_paFlipV );
m_paFlipMenu->insert( m_paFlipH );
m_paRotateCCW = new TDEAction( i18n( "Ro&tate Counter-Clockwise" ), "object-rotate-left", 0, this,
- TQT_SLOT( slotRotateCCW() ), actionCollection(), "rotateCCW" );
+ TQ_SLOT( slotRotateCCW() ), actionCollection(), "rotateCCW" );
m_paRotateCW = new TDEAction( i18n( "Rotate Clockwise" ), "object-rotate-right", 0, this,
- TQT_SLOT( slotRotateCW() ), actionCollection(), "rotateCW" );
- m_paSave = KStdAction::save( this, TQT_SLOT( slotSave() ), actionCollection() );
+ TQ_SLOT( slotRotateCW() ), actionCollection(), "rotateCW" );
+ m_paSave = KStdAction::save( this, TQ_SLOT( slotSave() ), actionCollection() );
m_paSave->setEnabled( false );
- m_paSaveAs = KStdAction::saveAs( this, TQT_SLOT( slotSaveAs() ), actionCollection() );
+ m_paSaveAs = KStdAction::saveAs( this, TQ_SLOT( slotSaveAs() ), actionCollection() );
m_paFitToWin = new TDEAction( i18n( "Fit Image to Window" ), 0, 0, this,
- TQT_SLOT( slotFitToWin() ), actionCollection(), "fittowin" );
+ TQ_SLOT( slotFitToWin() ), actionCollection(), "fittowin" );
m_paZoomIn->setEnabled( false );
m_paZoomOut->setEnabled( false );
m_paZoom->setEnabled( false );
@@ -503,18 +503,18 @@ void KViewViewer::setupActions()
m_paFlipMenu->setEnabled( false );
m_paFlipV->setEnabled( false );
m_paFlipH->setEnabled( false );
- connect( widget(), TQT_SIGNAL( hasImage( bool ) ), m_paZoomIn, TQT_SLOT( setEnabled( bool ) ) );
- connect( widget(), TQT_SIGNAL( hasImage( bool ) ), m_paZoomOut, TQT_SLOT( setEnabled( bool ) ) );
- connect( widget(), TQT_SIGNAL( hasImage( bool ) ), m_paZoom, TQT_SLOT( setEnabled( bool ) ) );
- connect( widget(), TQT_SIGNAL( hasImage( bool ) ), m_paRotateCCW, TQT_SLOT( setEnabled( bool ) ) );
- connect( widget(), TQT_SIGNAL( hasImage( bool ) ), m_paRotateCW, TQT_SLOT( setEnabled( bool ) ) );
- connect( widget(), TQT_SIGNAL( hasImage( bool ) ), m_paSaveAs, TQT_SLOT( setEnabled( bool ) ) );
- connect( widget(), TQT_SIGNAL( hasImage( bool ) ), m_paFitToWin, TQT_SLOT( setEnabled( bool ) ) );
- connect( widget(), TQT_SIGNAL( hasImage( bool ) ), m_paFlipMenu, TQT_SLOT( setEnabled( bool ) ) );
- connect( widget(), TQT_SIGNAL( hasImage( bool ) ), m_paFlipV, TQT_SLOT( setEnabled( bool ) ) );
- connect( widget(), TQT_SIGNAL( hasImage( bool ) ), m_paFlipH, TQT_SLOT( setEnabled( bool ) ) );
-
- m_paShowScrollbars = new TDEToggleAction( i18n( "Show Scrollbars" ), 0, this, TQT_SLOT( slotToggleScrollbars() ),
+ connect( widget(), TQ_SIGNAL( hasImage( bool ) ), m_paZoomIn, TQ_SLOT( setEnabled( bool ) ) );
+ connect( widget(), TQ_SIGNAL( hasImage( bool ) ), m_paZoomOut, TQ_SLOT( setEnabled( bool ) ) );
+ connect( widget(), TQ_SIGNAL( hasImage( bool ) ), m_paZoom, TQ_SLOT( setEnabled( bool ) ) );
+ connect( widget(), TQ_SIGNAL( hasImage( bool ) ), m_paRotateCCW, TQ_SLOT( setEnabled( bool ) ) );
+ connect( widget(), TQ_SIGNAL( hasImage( bool ) ), m_paRotateCW, TQ_SLOT( setEnabled( bool ) ) );
+ connect( widget(), TQ_SIGNAL( hasImage( bool ) ), m_paSaveAs, TQ_SLOT( setEnabled( bool ) ) );
+ connect( widget(), TQ_SIGNAL( hasImage( bool ) ), m_paFitToWin, TQ_SLOT( setEnabled( bool ) ) );
+ connect( widget(), TQ_SIGNAL( hasImage( bool ) ), m_paFlipMenu, TQ_SLOT( setEnabled( bool ) ) );
+ connect( widget(), TQ_SIGNAL( hasImage( bool ) ), m_paFlipV, TQ_SLOT( setEnabled( bool ) ) );
+ connect( widget(), TQ_SIGNAL( hasImage( bool ) ), m_paFlipH, TQ_SLOT( setEnabled( bool ) ) );
+
+ m_paShowScrollbars = new TDEToggleAction( i18n( "Show Scrollbars" ), 0, this, TQ_SLOT( slotToggleScrollbars() ),
actionCollection(), "show_scrollbars" );
m_paShowScrollbars->setCheckedState(i18n("Hide Scrollbars"));
}
@@ -754,7 +754,7 @@ void KViewViewer::slotPopupMenu( const TQPoint &pos )
{
KXMLGUIClient *popupGUIClient = new PopupGUIClient( instance(), m_popupDoc );
- (void) new TDEAction( i18n( "Save Image As..." ), 0, this, TQT_SLOT( slotSaveAs() ),
+ (void) new TDEAction( i18n( "Save Image As..." ), 0, this, TQ_SLOT( slotSaveAs() ),
popupGUIClient->actionCollection(), "saveimageas" );
// ### HACK treat the image as dir to get the back/fwd/reload buttons (Simon)
@@ -818,9 +818,9 @@ void KViewViewer::slotFileDirty( const TQString & )
KPushButton * no = new KPushButton( i18n("Do Not Reload"), hb );
layout->addWidget( no );
layout->addItem( new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );
- connect( yes, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotReloadUnmodified() ) );
- connect( yes, TQT_SIGNAL( clicked() ), pop, TQT_SLOT( hide() ) );
- connect( no, TQT_SIGNAL( clicked() ), pop, TQT_SLOT( hide() ) );
+ connect( yes, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotReloadUnmodified() ) );
+ connect( yes, TQ_SIGNAL( clicked() ), pop, TQ_SLOT( hide() ) );
+ connect( no, TQ_SIGNAL( clicked() ), pop, TQ_SLOT( hide() ) );
pop->setView( vb );
pop->setTimeout( 0 );
pop->setAutoDelete( true );
diff --git a/kview/modules/browser/kviewbrowser.cpp b/kview/modules/browser/kviewbrowser.cpp
index a8c2fed6..fff86dbb 100644
--- a/kview/modules/browser/kviewbrowser.cpp
+++ b/kview/modules/browser/kviewbrowser.cpp
@@ -45,9 +45,9 @@ KViewBrowser::KViewBrowser( TQObject* parent, const char* name, const TQStringLi
m_pViewer = static_cast<KImageViewer::Viewer *>( parent );
if( m_pViewer )
{
- m_paBack = KStdAction::back ( this, TQT_SLOT( slotBack() ), actionCollection(), "previous_image" );
+ m_paBack = KStdAction::back ( this, TQ_SLOT( slotBack() ), actionCollection(), "previous_image" );
m_paBack->setShortcut( SHIFT+Key_Left );
- m_paForward = KStdAction::forward( this, TQT_SLOT( slotForward() ), actionCollection(), "next_image" );
+ m_paForward = KStdAction::forward( this, TQ_SLOT( slotForward() ), actionCollection(), "next_image" );
m_paForward->setShortcut( SHIFT+Key_Right );
m_pExtension = m_pViewer->browserExtension();
}
@@ -156,8 +156,8 @@ void KViewBrowser::setupDirLister()
m_pDirLister = new KDirLister();
m_pDirLister->setMimeFilter( KImageIO::mimeTypes( KImageIO::Reading ) );
m_pDirLister->setShowingDotFiles( true );
- connect( m_pDirLister, TQT_SIGNAL( newItems( const KFileItemList & ) ), TQT_SLOT( slotNewItems( const KFileItemList & ) ) );
- connect( m_pDirLister, TQT_SIGNAL( deleteItem( KFileItem * ) ), TQT_SLOT( slotDeleteItem( KFileItem * ) ) );
+ connect( m_pDirLister, TQ_SIGNAL( newItems( const KFileItemList & ) ), TQ_SLOT( slotNewItems( const KFileItemList & ) ) );
+ connect( m_pDirLister, TQ_SIGNAL( deleteItem( KFileItem * ) ), TQ_SLOT( slotDeleteItem( KFileItem * ) ) );
}
if( m_pDirLister->url() != KURL( m_pViewer->url().directory( true, false ) ) )
{
diff --git a/kview/modules/effects/kvieweffects.cpp b/kview/modules/effects/kvieweffects.cpp
index 4ae192a6..fd42504d 100644
--- a/kview/modules/effects/kvieweffects.cpp
+++ b/kview/modules/effects/kvieweffects.cpp
@@ -38,20 +38,20 @@ KViewEffects::KViewEffects( TQObject* parent, const char* name, const TQStringLi
if( m_pViewer )
{
TDEAction * gammaaction = new TDEAction( i18n( "&Gamma Correction..." ), 0, 0,
- this, TQT_SLOT( gamma() ),
+ this, TQ_SLOT( gamma() ),
actionCollection(), "plugin_effects_gamma" );
TDEAction * blendaction = new TDEAction( i18n( "&Blend Color..." ), 0, 0,
- this, TQT_SLOT( blend() ),
+ this, TQ_SLOT( blend() ),
actionCollection(), "plugin_effects_blend" );
TDEAction * intensityaction = new TDEAction( i18n( "Change &Intensity (Brightness)..." ), 0, 0,
- this, TQT_SLOT( intensity() ),
+ this, TQ_SLOT( intensity() ),
actionCollection(), "plugin_effects_intensity" );
gammaaction->setEnabled( m_pViewer->canvas()->image() != 0 );
blendaction->setEnabled( m_pViewer->canvas()->image() != 0 );
intensityaction->setEnabled( m_pViewer->canvas()->image() != 0 );
- connect( m_pViewer->widget(), TQT_SIGNAL( hasImage( bool ) ), gammaaction, TQT_SLOT( setEnabled( bool ) ) );
- connect( m_pViewer->widget(), TQT_SIGNAL( hasImage( bool ) ), blendaction, TQT_SLOT( setEnabled( bool ) ) );
- connect( m_pViewer->widget(), TQT_SIGNAL( hasImage( bool ) ), intensityaction, TQT_SLOT( setEnabled( bool ) ) );
+ connect( m_pViewer->widget(), TQ_SIGNAL( hasImage( bool ) ), gammaaction, TQ_SLOT( setEnabled( bool ) ) );
+ connect( m_pViewer->widget(), TQ_SIGNAL( hasImage( bool ) ), blendaction, TQ_SLOT( setEnabled( bool ) ) );
+ connect( m_pViewer->widget(), TQ_SIGNAL( hasImage( bool ) ), intensityaction, TQ_SLOT( setEnabled( bool ) ) );
}
else
kdWarning( 4630 ) << "no KImageViewer interface found - the effects plugin won't work" << endl;
@@ -67,7 +67,7 @@ KViewEffects::~KViewEffects()
void KViewEffects::intensity()
{
KDialogBase dlg( m_pViewer->widget(), "Intensity Dialog", true /*modal*/, i18n( "Change Intensity" ), KDialogBase::Ok | KDialogBase::Try | KDialogBase::Cancel );
- connect( &dlg, TQT_SIGNAL( tryClicked() ), this, TQT_SLOT( applyIntensity() ) );
+ connect( &dlg, TQ_SIGNAL( tryClicked() ), this, TQ_SLOT( applyIntensity() ) );
TQVBox * vbox = new TQVBox( &dlg );
vbox->setSpacing( KDialog::spacingHint() );
@@ -77,7 +77,7 @@ void KViewEffects::intensity()
percent->setValue( m_intensity );
percent->setLabel( i18n( "&Intensity:" ) );
percent->setSuffix( TQString::fromAscii( "%" ) );
- connect( percent, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( setIntensity( int ) ) );
+ connect( percent, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( setIntensity( int ) ) );
int result = dlg.exec();
if( result == TQDialog::Accepted )
@@ -117,7 +117,7 @@ void KViewEffects::applyIntensity()
void KViewEffects::blend()
{
KDialogBase dlg( m_pViewer->widget(), "Blend Color Dialog", true /*modal*/, i18n( "Blend Color" ), KDialogBase::Ok | KDialogBase::Try | KDialogBase::Cancel );
- connect( &dlg, TQT_SIGNAL( tryClicked() ), this, TQT_SLOT( applyBlend() ) );
+ connect( &dlg, TQ_SIGNAL( tryClicked() ), this, TQ_SLOT( applyBlend() ) );
TQVBox * vbox = new TQVBox( &dlg );
vbox->setSpacing( KDialog::spacingHint() );
@@ -127,11 +127,11 @@ void KViewEffects::blend()
opacity->setValue( m_opacity );
opacity->setLabel( i18n( "O&pacity:" ) );
opacity->setSuffix( TQString::fromAscii( "%" ) );
- connect( opacity, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( setOpacity( int ) ) );
+ connect( opacity, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( setOpacity( int ) ) );
TQLabel * label = new TQLabel( i18n( "Blend c&olor:" ), vbox );
KColorButton * color = new KColorButton( m_color, vbox, "Color Input Button" );
label->setBuddy( color );
- connect( color, TQT_SIGNAL( changed( const TQColor & ) ), this, TQT_SLOT( setColor( const TQColor & ) ) );
+ connect( color, TQ_SIGNAL( changed( const TQColor & ) ), this, TQ_SLOT( setColor( const TQColor & ) ) );
int result = dlg.exec();
if( result == TQDialog::Accepted )
@@ -175,12 +175,12 @@ void KViewEffects::applyBlend()
void KViewEffects::gamma()
{
KDialogBase dlg( m_pViewer->widget(), "Gamma Correction Dialog", true /*modal*/, i18n( "Gamma Correction" ), KDialogBase::Ok | KDialogBase::Try | KDialogBase::Cancel );
- connect( &dlg, TQT_SIGNAL( tryClicked() ), this, TQT_SLOT( applyGammaCorrection() ) );
+ connect( &dlg, TQ_SIGNAL( tryClicked() ), this, TQ_SLOT( applyGammaCorrection() ) );
// create dialog
KDoubleNumInput * gammavalue = new KDoubleNumInput( 0.0, 1.0, 0.5, 0.01, 4, &dlg, "Gamma value input" );
gammavalue->setRange( 0.0, 1.0, 0.01, true );
- connect( gammavalue, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( setGammaValue( double ) ) );
+ connect( gammavalue, TQ_SIGNAL( valueChanged( double ) ), this, TQ_SLOT( setGammaValue( double ) ) );
gammavalue->setLabel( i18n( "Gamma value:" ) );
dlg.setMainWidget( gammavalue );
diff --git a/kview/modules/presenter/config/kviewpresenterconfig.cpp b/kview/modules/presenter/config/kviewpresenterconfig.cpp
index f88f09b1..1e1e091c 100644
--- a/kview/modules/presenter/config/kviewpresenterconfig.cpp
+++ b/kview/modules/presenter/config/kviewpresenterconfig.cpp
@@ -38,7 +38,7 @@ KViewPresenterConfig::KViewPresenterConfig( TQWidget * parent, const char *, con
layout->setAutoAdd( true );
m_pCheckBox = new TQCheckBox( "This is only for testing...", this );
- connect( m_pCheckBox, TQT_SIGNAL( clicked() ), this, TQT_SLOT( checkChanged() ) );
+ connect( m_pCheckBox, TQ_SIGNAL( clicked() ), this, TQ_SLOT( checkChanged() ) );
}
KViewPresenterConfig::~KViewPresenterConfig()
diff --git a/kview/modules/presenter/kviewpresenter.cpp b/kview/modules/presenter/kviewpresenter.cpp
index 3017e1b8..96b3abbb 100644
--- a/kview/modules/presenter/kviewpresenter.cpp
+++ b/kview/modules/presenter/kviewpresenter.cpp
@@ -67,18 +67,18 @@ KViewPresenter::KViewPresenter( TQObject* parent, const char* name, const TQStri
if( m_pViewer )
{
( void ) new TDEAction( i18n( "&Image List..." ), 0, 0,
- this, TQT_SLOT( slotImageList() ),
+ this, TQ_SLOT( slotImageList() ),
actionCollection(), "plugin_presenter_imageList" );
m_paSlideshow = new TDEToggleAction( i18n( "Start &Slideshow" ), Key_S, actionCollection(), "plugin_presenter_slideshow" );
( void ) new TDEAction( i18n( "&Previous Image in List" ), "go-previous", ALT+Key_Left,
- this, TQT_SLOT( prev() ),
+ this, TQ_SLOT( prev() ),
actionCollection(), "plugin_presenter_prev" );
( void ) new TDEAction( i18n( "&Next Image in List" ), "go-next", ALT+Key_Right,
- this, TQT_SLOT( next() ),
+ this, TQ_SLOT( next() ),
actionCollection(), "plugin_presenter_next" );
- connect( m_paSlideshow, TQT_SIGNAL( toggled( bool ) ), m_pImageList->m_pSlideshow, TQT_SLOT( setOn( bool ) ) );
- connect( m_pImageList->m_pSlideshow, TQT_SIGNAL( toggled( bool ) ), m_paSlideshow, TQT_SLOT( setChecked( bool ) ) );
+ connect( m_paSlideshow, TQ_SIGNAL( toggled( bool ) ), m_pImageList->m_pSlideshow, TQ_SLOT( setOn( bool ) ) );
+ connect( m_pImageList->m_pSlideshow, TQ_SIGNAL( toggled( bool ) ), m_paSlideshow, TQ_SLOT( setChecked( bool ) ) );
// search for file_open action
KXMLGUIClient * parentClient = static_cast<KXMLGUIClient*>( parent->tqt_cast( "KXMLGUIClient" ) );
@@ -88,48 +88,48 @@ KViewPresenter::KViewPresenter( TQObject* parent, const char* name, const TQStri
m_paFileClose = parentClient->actionCollection()->action( "file_close" );
}
if( m_paFileClose )
- connect( m_paFileClose, TQT_SIGNAL( activated() ), this, TQT_SLOT( slotClose() ) );
+ connect( m_paFileClose, TQ_SIGNAL( activated() ), this, TQ_SLOT( slotClose() ) );
if( m_paFileOpen )
{
- disconnect( m_paFileOpen, TQT_SIGNAL( activated() ), parent, TQT_SLOT( slotOpenFile() ) );
- connect( m_paFileOpen, TQT_SIGNAL( activated() ), this, TQT_SLOT( slotOpenFiles() ) );
+ disconnect( m_paFileOpen, TQ_SIGNAL( activated() ), parent, TQ_SLOT( slotOpenFile() ) );
+ connect( m_paFileOpen, TQ_SIGNAL( activated() ), this, TQ_SLOT( slotOpenFiles() ) );
}
else
{
(void) new TDEAction( i18n( "Open &Multiple Files..." ), "queue", CTRL+SHIFT+Key_O,
- this, TQT_SLOT( slotOpenFiles() ),
+ this, TQ_SLOT( slotOpenFiles() ),
actionCollection(), "plugin_presenter_openFiles" );
}
- connect( m_pViewer, TQT_SIGNAL( imageOpened( const KURL & ) ),
- TQT_SLOT( slotImageOpened( const KURL & ) ) );
+ connect( m_pViewer, TQ_SIGNAL( imageOpened( const KURL & ) ),
+ TQ_SLOT( slotImageOpened( const KURL & ) ) );
}
else
kdWarning( 4630 ) << "no KImageViewer interface found - the presenter plugin won't work" << endl;
//( void )new KViewPresenterConfModule( this );
- connect( m_pImageList->m_pListView, TQT_SIGNAL( executed( TQListViewItem* ) ),
- this, TQT_SLOT( changeItem( TQListViewItem* ) ) );
- connect( m_pImageList->m_pPrevious, TQT_SIGNAL( clicked() ),
- this, TQT_SLOT( prev() ) );
- connect( m_pImageList->m_pNext, TQT_SIGNAL( clicked() ),
- this, TQT_SLOT( next() ) );
- connect( m_pImageList->m_pListView, TQT_SIGNAL( spacePressed( TQListViewItem* ) ),
- this, TQT_SLOT( changeItem( TQListViewItem* ) ) );
- connect( m_pImageList->m_pListView, TQT_SIGNAL( returnPressed( TQListViewItem* ) ),
- this, TQT_SLOT( changeItem( TQListViewItem* ) ) );
- connect( m_pImageList->m_pSlideshow, TQT_SIGNAL( toggled( bool ) ),
- this, TQT_SLOT( slideshow( bool ) ) );
- connect( m_pImageList->m_pInterval, TQT_SIGNAL( valueChanged( int ) ),
- this, TQT_SLOT( setSlideshowInterval( int ) ) );
- connect( m_pImageList->m_pShuffle, TQT_SIGNAL( clicked() ),
- this, TQT_SLOT( shuffle() ) );
- connect( m_pImageList->m_pLoad, TQT_SIGNAL( clicked() ),
- this, TQT_SLOT( loadList() ) );
- connect( m_pImageList->m_pSave, TQT_SIGNAL( clicked() ),
- this, TQT_SLOT( saveList() ) );
- connect( m_pImageList->m_pCloseAll, TQT_SIGNAL( clicked() ),
- this, TQT_SLOT( closeAll() ) );
+ connect( m_pImageList->m_pListView, TQ_SIGNAL( executed( TQListViewItem* ) ),
+ this, TQ_SLOT( changeItem( TQListViewItem* ) ) );
+ connect( m_pImageList->m_pPrevious, TQ_SIGNAL( clicked() ),
+ this, TQ_SLOT( prev() ) );
+ connect( m_pImageList->m_pNext, TQ_SIGNAL( clicked() ),
+ this, TQ_SLOT( next() ) );
+ connect( m_pImageList->m_pListView, TQ_SIGNAL( spacePressed( TQListViewItem* ) ),
+ this, TQ_SLOT( changeItem( TQListViewItem* ) ) );
+ connect( m_pImageList->m_pListView, TQ_SIGNAL( returnPressed( TQListViewItem* ) ),
+ this, TQ_SLOT( changeItem( TQListViewItem* ) ) );
+ connect( m_pImageList->m_pSlideshow, TQ_SIGNAL( toggled( bool ) ),
+ this, TQ_SLOT( slideshow( bool ) ) );
+ connect( m_pImageList->m_pInterval, TQ_SIGNAL( valueChanged( int ) ),
+ this, TQ_SLOT( setSlideshowInterval( int ) ) );
+ connect( m_pImageList->m_pShuffle, TQ_SIGNAL( clicked() ),
+ this, TQ_SLOT( shuffle() ) );
+ connect( m_pImageList->m_pLoad, TQ_SIGNAL( clicked() ),
+ this, TQ_SLOT( loadList() ) );
+ connect( m_pImageList->m_pSave, TQ_SIGNAL( clicked() ),
+ this, TQ_SLOT( saveList() ) );
+ connect( m_pImageList->m_pCloseAll, TQ_SIGNAL( clicked() ),
+ this, TQ_SLOT( closeAll() ) );
// allow drop on the dialog
m_pImageList->installEventFilter( this );
@@ -139,8 +139,8 @@ KViewPresenter::KViewPresenter( TQObject* parent, const char* name, const TQStri
// grab drops on the main view
m_pViewer->widget()->installEventFilter( this );
- connect( m_pSlideshowTimer, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( next() ) );
+ connect( m_pSlideshowTimer, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( next() ) );
}
KViewPresenter::~KViewPresenter()
@@ -148,13 +148,13 @@ KViewPresenter::~KViewPresenter()
kdDebug( 4630 ) << k_funcinfo << endl;
if( m_paFileOpen )
{
- disconnect( m_paFileOpen, TQT_SIGNAL( activated() ), this, TQT_SLOT( slotOpenFiles() ) );
+ disconnect( m_paFileOpen, TQ_SIGNAL( activated() ), this, TQ_SLOT( slotOpenFiles() ) );
// If the parent() doesn't exist we either leave the "File Open" action
// in an unusable state or KView was just shutting down and therefor we
// can ignore this. I've only seen the second one happening and to get
// rid of the TQObject::connect warning we do the parent() check.
if( parent() )
- connect( m_paFileOpen, TQT_SIGNAL( activated() ), parent(), TQT_SLOT( slotOpenFile() ) );
+ connect( m_paFileOpen, TQ_SIGNAL( activated() ), parent(), TQ_SLOT( slotOpenFile() ) );
}
}
diff --git a/kview/modules/scale/kfloatspinbox.cpp b/kview/modules/scale/kfloatspinbox.cpp
index 0dc7fb33..cd30e1f3 100644
--- a/kview/modules/scale/kfloatspinbox.cpp
+++ b/kview/modules/scale/kfloatspinbox.cpp
@@ -42,7 +42,7 @@ KFloatSpinBox::KFloatSpinBox( float minValue, float maxValue, float step, unsign
, m_doselection( true )
{
setRange( minValue, maxValue, step, precision );
- connect( this, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( slotValueChanged( int ) ) );
+ connect( this, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( slotValueChanged( int ) ) );
}
KFloatSpinBox::~KFloatSpinBox()
diff --git a/kview/modules/scale/kview_scale.cpp b/kview/modules/scale/kview_scale.cpp
index 28298323..1813bac9 100644
--- a/kview/modules/scale/kview_scale.cpp
+++ b/kview/modules/scale/kview_scale.cpp
@@ -47,7 +47,7 @@ KViewScale::KViewScale( TQObject* parent, const char* name, const TQStringList &
m_pCanvas = m_pViewer->canvas();
(void) new TDEAction( i18n( "&Scale Image..." ), 0, 0,
- this, TQT_SLOT( slotScaleDlg() ),
+ this, TQ_SLOT( slotScaleDlg() ),
actionCollection(), "plugin_scale" );
}
else
diff --git a/kview/modules/scale/scaledlg.cpp b/kview/modules/scale/scaledlg.cpp
index 308546cd..d4c33262 100644
--- a/kview/modules/scale/scaledlg.cpp
+++ b/kview/modules/scale/scaledlg.cpp
@@ -157,16 +157,16 @@ ScaleDlg::ScaleDlg( const TQSize & origsize, TQVBox * parent, const char * name
m_newsizeunit2 = 0;
m_resolutionunit = 0;
- connect( m_pNewWidth, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotNewWidth( float ) ) );
- connect( m_pNewHeight, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotNewHeight( float ) ) );
- connect( m_pNewWidth2, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotNewWidth2( float ) ) );
- connect( m_pNewHeight2, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotNewHeight2( float ) ) );
- connect( m_pResolutionX, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotResolutionX( float ) ) );
- connect( m_pResolutionY, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotResolutionY( float ) ) );
-
- connect( m_pNewSizeUnit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotChangeNewSizeUnit( int ) ) );
- connect( m_pNewSizeUnit2, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotChangeNewSizeUnit2( int ) ) );
- connect( m_pResolutionUnit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotChangeResolutionUnit( int ) ) );
+ connect( m_pNewWidth, TQ_SIGNAL( valueChanged( float ) ), TQ_SLOT( slotNewWidth( float ) ) );
+ connect( m_pNewHeight, TQ_SIGNAL( valueChanged( float ) ), TQ_SLOT( slotNewHeight( float ) ) );
+ connect( m_pNewWidth2, TQ_SIGNAL( valueChanged( float ) ), TQ_SLOT( slotNewWidth2( float ) ) );
+ connect( m_pNewHeight2, TQ_SIGNAL( valueChanged( float ) ), TQ_SLOT( slotNewHeight2( float ) ) );
+ connect( m_pResolutionX, TQ_SIGNAL( valueChanged( float ) ), TQ_SLOT( slotResolutionX( float ) ) );
+ connect( m_pResolutionY, TQ_SIGNAL( valueChanged( float ) ), TQ_SLOT( slotResolutionY( float ) ) );
+
+ connect( m_pNewSizeUnit, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotChangeNewSizeUnit( int ) ) );
+ connect( m_pNewSizeUnit2, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotChangeNewSizeUnit2( int ) ) );
+ connect( m_pResolutionUnit, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotChangeResolutionUnit( int ) ) );
}
ScaleDlg::~ScaleDlg()
diff --git a/kview/modules/scanner/kviewscanner.cpp b/kview/modules/scanner/kviewscanner.cpp
index 8f464522..ee964d4f 100644
--- a/kview/modules/scanner/kviewscanner.cpp
+++ b/kview/modules/scanner/kviewscanner.cpp
@@ -47,7 +47,7 @@ KViewScanner::KViewScanner( TQObject* parent, const char* name,
if( m_pViewer )
{
(void) new TDEAction( i18n( "&Scan Image..." ), "scanner", 0,
- this, TQT_SLOT( slotScan() ),
+ this, TQ_SLOT( slotScan() ),
actionCollection(), "plugin_scan" );
}
else
@@ -67,8 +67,8 @@ void KViewScanner::slotScan()
{
m_pScandlg->setMinimumSize( 300, 300 );
- connect( m_pScandlg, TQT_SIGNAL( finalImage( const TQImage &, int ) ),
- this, TQT_SLOT( slotImgScanned( const TQImage & ) ) );
+ connect( m_pScandlg, TQ_SIGNAL( finalImage( const TQImage &, int ) ),
+ this, TQ_SLOT( slotImgScanned( const TQImage & ) ) );
}
else
{
diff --git a/kview/modules/template/kviewtemplate.cpp b/kview/modules/template/kviewtemplate.cpp
index 023788c7..3a22d9df 100644
--- a/kview/modules/template/kviewtemplate.cpp
+++ b/kview/modules/template/kviewtemplate.cpp
@@ -24,7 +24,7 @@ KViewTemplate::KViewTemplate( TQObject* parent, const char* name, const TQString
if( m_pViewer )
{
(void) new TDEAction( /*i18n(*/ "&Do Something" /*)*/, 0, 0,
- this, TQT_SLOT( yourSlot() ),
+ this, TQ_SLOT( yourSlot() ),
actionCollection(), "plugin_template" );
}
else
diff --git a/kview/photobook/photobook.cpp b/kview/photobook/photobook.cpp
index 00b0790b..80a420f5 100644
--- a/kview/photobook/photobook.cpp
+++ b/kview/photobook/photobook.cpp
@@ -50,24 +50,24 @@ Previews::Previews(PhotoBook *parent, const TQStringList &mimetypes)
mPhotoBook = parent;
mMimeTypes = mimetypes;
- connect(&mDirLister, TQT_SIGNAL(clear()), TQT_SLOT(slotClearView()));
- connect(&mDirLister, TQT_SIGNAL(completed()), TQT_SLOT(doneListing()));
+ connect(&mDirLister, TQ_SIGNAL(clear()), TQ_SLOT(slotClearView()));
+ connect(&mDirLister, TQ_SIGNAL(completed()), TQ_SLOT(doneListing()));
connect(
- &mDirLister, TQT_SIGNAL(newItems(const KFileItemList &)),
- TQT_SLOT(insertNewFiles(const KFileItemList &))
+ &mDirLister, TQ_SIGNAL(newItems(const KFileItemList &)),
+ TQ_SLOT(insertNewFiles(const KFileItemList &))
);
connect(
- signaler(), TQT_SIGNAL(fileSelected(const KFileItem*)),
- TQT_SLOT(open(const KFileItem*))
+ signaler(), TQ_SIGNAL(fileSelected(const KFileItem*)),
+ TQ_SLOT(open(const KFileItem*))
);
connect(
- &mDirLister, TQT_SIGNAL(deleteItem(KFileItem *)),
- TQT_SLOT(removeItem(KFileItem *))
+ &mDirLister, TQ_SIGNAL(deleteItem(KFileItem *)),
+ TQ_SLOT(removeItem(KFileItem *))
);
connect(
- &mDirLister, TQT_SIGNAL( refreshItems( const KFileItemList& ) ),
- TQT_SLOT( slotRefreshItems( const KFileItemList& ) )
+ &mDirLister, TQ_SIGNAL( refreshItems( const KFileItemList& ) ),
+ TQ_SLOT( slotRefreshItems( const KFileItemList& ) )
);
setFixedWidth(128);
@@ -136,7 +136,7 @@ void Previews::open(const KFileItem *item)
void Previews::doneListing()
{
// eep! -- this should not be necessary
- TQTimer::singleShot(0, this, TQT_SLOT(goToFirst()));
+ TQTimer::singleShot(0, this, TQ_SLOT(goToFirst()));
}
void Previews::goToFirst()
@@ -184,8 +184,8 @@ PhotoBook::PhotoBook(TQWidget *parent, PhotoBookPart *part, const char *name)
mFit = mViewer->action("fittowin");
- connect(mList, TQT_SIGNAL(open(const KURL&)), mViewer, TQT_SLOT(openURL(const KURL&)));
- connect(mViewer, TQT_SIGNAL(completed()), mFit, TQT_SLOT(activate()));
+ connect(mList, TQ_SIGNAL(open(const KURL&)), mViewer, TQ_SLOT(openURL(const KURL&)));
+ connect(mViewer, TQ_SIGNAL(completed()), mFit, TQ_SLOT(activate()));
part->insertChildClient(mViewer);
}
@@ -233,11 +233,11 @@ PhotoBookPart::PhotoBookPart(
setWidget(bv);
connect(
- bv, TQT_SIGNAL(emitUpdateButton(bool, bool)),
- this, TQT_SLOT(slotUpdateButton(bool, bool))
+ bv, TQ_SIGNAL(emitUpdateButton(bool, bool)),
+ this, TQ_SLOT(slotUpdateButton(bool, bool))
);
- m_pNextAction = KStdAction::next(bv, TQT_SLOT(next()), actionCollection(), "next");
- m_pPreviousAction = KStdAction::prior(bv, TQT_SLOT(previous()), actionCollection(), "previous");
+ m_pNextAction = KStdAction::next(bv, TQ_SLOT(next()), actionCollection(), "next");
+ m_pPreviousAction = KStdAction::prior(bv, TQ_SLOT(previous()), actionCollection(), "previous");
setXMLFile( "photobookui.rc" );