diff options
Diffstat (limited to 'kuickshow/src')
32 files changed, 187 insertions, 187 deletions
| diff --git a/kuickshow/src/Makefile.am b/kuickshow/src/Makefile.am index 82207816..ed1be70c 100644 --- a/kuickshow/src/Makefile.am +++ b/kuickshow/src/Makefile.am @@ -10,7 +10,7 @@ KDE_CXXFLAGS = $(IMLIB_CFLAGS)  METASOURCES = AUTO  kuickshow_la_LDFLAGS = $(all_libraries) -module -avoid-version -kuickshow_la_LIBADD  = $(LIB_TDEPRINT) $(LIB_IMLIB) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_TDEIO) +kuickshow_la_LIBADD  = $(LIB_TDEPRINT) $(LIB_IMLIB) $(LIB_TQT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_TDEIO)  kuickshow_la_SOURCES =	kuickshow.cpp \  	aboutwidget.cpp     generalwidget.cpp  kuickconfigdlg.cpp  main.cpp \  	defaultswidget.cpp  imagewindow.cpp    kuickdata.cpp  \ diff --git a/kuickshow/src/aboutwidget.cpp b/kuickshow/src/aboutwidget.cpp index 72ce1839..6c606e4d 100644 --- a/kuickshow/src/aboutwidget.cpp +++ b/kuickshow/src/aboutwidget.cpp @@ -23,7 +23,7 @@  #include <tqlabel.h>  #include <twin.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h>  #include "imlibwidget.h"  #include "kurlwidget.h" @@ -39,7 +39,7 @@ AboutWidget::AboutWidget( TQWidget *parent, const char *name )      setFrameStyle( WinPanel | Raised ); -    TQGroupBox *gBox = new TQGroupBox( 1,Qt::Horizontal, this); +    TQGroupBox *gBox = new TQGroupBox( 1,TQt::Horizontal, this);      gBox->setGeometry( 10, 10, width()-20, height()-20 );      gBox->setAlignment( AlignHCenter );      gBox->installEventFilter( this ); @@ -83,7 +83,7 @@ AboutWidget::~AboutWidget()  bool AboutWidget::eventFilter( TQObject *o, TQEvent *e )  {      if ( e->type() == TQEvent::MouseButtonPress ) { -        TQMouseEvent *ev = TQT_TQMOUSEEVENT( e ); +        TQMouseEvent *ev = static_cast<TQMouseEvent*>( e );          if ( !m_homepage->geometry().contains( ev->pos() ) ) {              deleteLater();              return true; diff --git a/kuickshow/src/aboutwidget.h b/kuickshow/src/aboutwidget.h index b6636bb2..54f81ec5 100644 --- a/kuickshow/src/aboutwidget.h +++ b/kuickshow/src/aboutwidget.h @@ -26,7 +26,7 @@ class KURLWidget;  class AboutWidget : public TQVBox  { -    Q_OBJECT +    TQ_OBJECT  public: diff --git a/kuickshow/src/defaultswidget.cpp b/kuickshow/src/defaultswidget.cpp index 4746638e..c590d1f4 100644 --- a/kuickshow/src/defaultswidget.cpp +++ b/kuickshow/src/defaultswidget.cpp @@ -26,7 +26,7 @@  #include <kdialog.h>  #include <tdelocale.h>  #include <knuminput.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h>  #include "imlibwidget.h"  #include "defaultswidget.h" @@ -37,12 +37,12 @@ DefaultsWidget::DefaultsWidget( TQWidget *parent, const char *name)    imFiltered = 0L;    cbEnableMods = new TQCheckBox( i18n("Apply default image modifications"), this ); -  connect( cbEnableMods, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( enableWidgets(bool) )); +  connect( cbEnableMods, TQ_SIGNAL( toggled(bool) ), TQ_SLOT( enableWidgets(bool) ));    // create all the widgets    gbScale = new TQGroupBox( i18n("Scaling"), this ); -  gbScale->setColumnLayout( 0, Qt::Horizontal ); +  gbScale->setColumnLayout( 0, TQt::Horizontal );    cbDownScale = new TQCheckBox( i18n("Shrink image to screen size, if larger"),  			       gbScale, "shrinktoscreen" ); @@ -52,13 +52,13 @@ DefaultsWidget::DefaultsWidget( TQWidget *parent, const char *name)    sbMaxUpScaleFactor = new KIntNumInput( gbScale, "upscale factor" );    sbMaxUpScaleFactor->setRange( 1, 100, 1, false ); -  connect(cbUpScale, TQT_SIGNAL( toggled(bool)), sbMaxUpScaleFactor, -            TQT_SLOT( setEnabled(bool) )); +  connect(cbUpScale, TQ_SIGNAL( toggled(bool)), sbMaxUpScaleFactor, +            TQ_SLOT( setEnabled(bool) ));    // --    gbGeometry = new TQGroupBox( i18n("Geometry"), this ); -  gbGeometry->setColumnLayout( 0, Qt::Horizontal ); +  gbGeometry->setColumnLayout( 0, TQt::Horizontal );    cbFlipVertically = new TQCheckBox( i18n("Flip vertically"), gbGeometry ); @@ -99,7 +99,7 @@ DefaultsWidget::DefaultsWidget( TQWidget *parent, const char *name)    lbImFiltered = new TQLabel( i18n("Modified"), gbPreview );    imFiltered = new ImlibWidget( 0L, imOrig->getImlibData(), gbPreview, "" ); -  connect( imFiltered, TQT_SIGNAL( destroyed() ), TQT_SLOT( slotNoImage() )); +  connect( imFiltered, TQ_SIGNAL( destroyed() ), TQ_SLOT( slotNoImage() ));    ////    //////////////// @@ -159,16 +159,16 @@ DefaultsWidget::DefaultsWidget( TQWidget *parent, const char *name)    ////////////////    // connect them all to the update slot -  connect( cbDownScale,        TQT_SIGNAL( clicked() ), TQT_SLOT( updatePreview() )); -  connect( cbUpScale,          TQT_SIGNAL( clicked() ), TQT_SLOT( updatePreview() )); -  connect( cbFlipVertically,   TQT_SIGNAL( clicked() ), TQT_SLOT( updatePreview() )); -  connect( cbFlipHorizontally, TQT_SIGNAL( clicked() ), TQT_SLOT( updatePreview() )); -  connect( sbMaxUpScaleFactor, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( updatePreview() )); -  connect( sbBrightness, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( updatePreview() )); -  connect( sbContrast,   TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( updatePreview() )); -  connect( sbGamma,      TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( updatePreview() )); - -  connect( comboRotate,  TQT_SIGNAL( activated(int) ), TQT_SLOT( updatePreview() )); +  connect( cbDownScale,        TQ_SIGNAL( clicked() ), TQ_SLOT( updatePreview() )); +  connect( cbUpScale,          TQ_SIGNAL( clicked() ), TQ_SLOT( updatePreview() )); +  connect( cbFlipVertically,   TQ_SIGNAL( clicked() ), TQ_SLOT( updatePreview() )); +  connect( cbFlipHorizontally, TQ_SIGNAL( clicked() ), TQ_SLOT( updatePreview() )); +  connect( sbMaxUpScaleFactor, TQ_SIGNAL( valueChanged(int) ), TQ_SLOT( updatePreview() )); +  connect( sbBrightness, TQ_SIGNAL( valueChanged(int) ), TQ_SLOT( updatePreview() )); +  connect( sbContrast,   TQ_SIGNAL( valueChanged(int) ), TQ_SLOT( updatePreview() )); +  connect( sbGamma,      TQ_SIGNAL( valueChanged(int) ), TQ_SLOT( updatePreview() )); + +  connect( comboRotate,  TQ_SIGNAL( activated(int) ), TQ_SLOT( updatePreview() ));    TQString filename = locate( "data", "kuickshow/pics/calibrate.png" ); diff --git a/kuickshow/src/defaultswidget.h b/kuickshow/src/defaultswidget.h index d5b18fc7..0215f8f2 100644 --- a/kuickshow/src/defaultswidget.h +++ b/kuickshow/src/defaultswidget.h @@ -32,7 +32,7 @@ class KIntNumInput;  class DefaultsWidget : public TQWidget  { -  Q_OBJECT +  TQ_OBJECT  public: diff --git a/kuickshow/src/filecache.cpp b/kuickshow/src/filecache.cpp index bb205a36..fcd12d5f 100644 --- a/kuickshow/src/filecache.cpp +++ b/kuickshow/src/filecache.cpp @@ -3,7 +3,7 @@  #include <tqstring.h>  #include <kdebug.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h>  #include <ktempdir.h>  #include "filecache.h" diff --git a/kuickshow/src/filefinder.cpp b/kuickshow/src/filefinder.cpp index 91012ac2..c3e18505 100644 --- a/kuickshow/src/filefinder.cpp +++ b/kuickshow/src/filefinder.cpp @@ -37,19 +37,19 @@ FileFinder::FileFinder( TQWidget *parent, const char *name )      setHandleSignals( true ); // we want the completionbox signals      completionBox()->setTabHandling( true ); -    connect( completionBox(), TQT_SIGNAL( userCancelled(const TQString&) ), -             TQT_SLOT( hide() )); -    connect( completionBox(), TQT_SIGNAL( activated( const TQString& ) ), -             TQT_SLOT( slotAccept( const TQString& ))); -    connect( this, TQT_SIGNAL( returnPressed( const TQString& )), -             TQT_SLOT( slotAccept( const TQString& ) )); +    connect( completionBox(), TQ_SIGNAL( userCancelled(const TQString&) ), +             TQ_SLOT( hide() )); +    connect( completionBox(), TQ_SIGNAL( activated( const TQString& ) ), +             TQ_SLOT( slotAccept( const TQString& ))); +    connect( this, TQ_SIGNAL( returnPressed( const TQString& )), +             TQ_SLOT( slotAccept( const TQString& ) ));      KURLCompletion *comp = new KURLCompletion();      comp->setReplaceHome( true );      comp->setReplaceEnv( true );      setCompletionObject( comp, false );      setAutoDeleteCompletionObject( true ); -    setFocusPolicy( TQ_ClickFocus ); +    setFocusPolicy( TQWidget::ClickFocus );      TDEConfig *config = TDEGlobal::config();      TDEConfigGroupSaver cs( config, "GeneralConfiguration" ); diff --git a/kuickshow/src/filefinder.h b/kuickshow/src/filefinder.h index d461e401..a53baa45 100644 --- a/kuickshow/src/filefinder.h +++ b/kuickshow/src/filefinder.h @@ -27,7 +27,7 @@ class KURLCompletion;  class FileFinder : public KLineEdit  { -    Q_OBJECT +    TQ_OBJECT  public: diff --git a/kuickshow/src/filewidget.cpp b/kuickshow/src/filewidget.cpp index 61c75118..d65e98b4 100644 --- a/kuickshow/src/filewidget.cpp +++ b/kuickshow/src/filewidget.cpp @@ -55,21 +55,21 @@ FileWidget::FileWidget( const KURL& url, TQWidget *parent, const char *name )      dirCompletionObject()->setCompletionMode( TDEGlobalSettings::CompletionAuto);      slotViewChanged(); -    connect( this, TQT_SIGNAL( viewChanged( KFileView * )), -	     TQT_SLOT( slotViewChanged() )); +    connect( this, TQ_SIGNAL( viewChanged( KFileView * )), +	     TQ_SLOT( slotViewChanged() )); -    connect( dirLister(), TQT_SIGNAL( clear() ), TQT_SLOT( slotItemsCleared() )); -    connect( dirLister(), TQT_SIGNAL( deleteItem( KFileItem * ) ), -	     TQT_SLOT( slotItemDeleted( KFileItem *) )); +    connect( dirLister(), TQ_SIGNAL( clear() ), TQ_SLOT( slotItemsCleared() )); +    connect( dirLister(), TQ_SIGNAL( deleteItem( KFileItem * ) ), +	     TQ_SLOT( slotItemDeleted( KFileItem *) )); -    connect( this, TQT_SIGNAL( fileHighlighted( const KFileItem * )), -	     TQT_SLOT( slotHighlighted( const KFileItem * ))); +    connect( this, TQ_SIGNAL( fileHighlighted( const KFileItem * )), +	     TQ_SLOT( slotHighlighted( const KFileItem * ))); -    connect( this, TQT_SIGNAL(urlEntered(const KURL&)), -             TQT_SLOT( slotURLEntered( const KURL& ))); +    connect( this, TQ_SIGNAL(urlEntered(const KURL&)), +             TQ_SLOT( slotURLEntered( const KURL& )));      // should actually be KDirOperator's job! -    connect( this, TQT_SIGNAL( finishedLoading() ), TQT_SLOT( slotFinishedLoading() )); +    connect( this, TQ_SIGNAL( finishedLoading() ), TQ_SLOT( slotFinishedLoading() ));  }  FileWidget::~FileWidget() @@ -179,7 +179,7 @@ void FileWidget::findCompletion( const TQString& text )  bool FileWidget::eventFilter( TQObject *o, TQEvent *e )  {      if ( e->type() == TQEvent::KeyPress ) { -	TQKeyEvent *k = TQT_TQKEYEVENT( e ); +	TQKeyEvent *k = static_cast<TQKeyEvent*>( e );  	if ( (k->state() & (ControlButton | AltButton)) == 0 ) {  	    int key = k->key(); @@ -201,11 +201,11 @@ bool FileWidget::eventFilter( TQObject *o, TQEvent *e )                  if ( !m_fileFinder ) {  		    m_fileFinder = new FileFinder( this, "file finder" ); -		    connect( m_fileFinder, TQT_SIGNAL( completion(const TQString&)), -			     TQT_SLOT( findCompletion( const TQString& ))); +		    connect( m_fileFinder, TQ_SIGNAL( completion(const TQString&)), +			     TQ_SLOT( findCompletion( const TQString& )));  		    connect( m_fileFinder, -			     TQT_SIGNAL( enterDir( const TQString& ) ), -			     TQT_SLOT( slotReturnPressed( const TQString& ))); +			     TQ_SIGNAL( enterDir( const TQString& ) ), +			     TQ_SLOT( slotReturnPressed( const TQString& )));  		    m_fileFinder->move( width()  - m_fileFinder->width(),  					height() - m_fileFinder->height() );  		} diff --git a/kuickshow/src/filewidget.h b/kuickshow/src/filewidget.h index 87eff314..31d97381 100644 --- a/kuickshow/src/filewidget.h +++ b/kuickshow/src/filewidget.h @@ -28,7 +28,7 @@ class KFileItem;  class FileWidget : public KDirOperator  { -    Q_OBJECT +    TQ_OBJECT  public: diff --git a/kuickshow/src/generalwidget.cpp b/kuickshow/src/generalwidget.cpp index d51fe7d9..5289c8e7 100644 --- a/kuickshow/src/generalwidget.cpp +++ b/kuickshow/src/generalwidget.cpp @@ -47,8 +47,8 @@ GeneralWidget::GeneralWidget( TQWidget *parent, const char *name )    logo->setTipText( i18n( "Open KuickShow Website" ) );    logo->setUseTips( true ); -  connect( logo, TQT_SIGNAL( leftClickedURL( const TQString & ) ), -            TQT_SLOT( slotURLClicked( const TQString & ) ) ); +  connect( logo, TQ_SIGNAL( leftClickedURL( const TQString & ) ), +            TQ_SLOT( slotURLClicked( const TQString & ) ) );    layout->addWidget( logo, 0, AlignRight ); @@ -92,7 +92,7 @@ GeneralWidget::GeneralWidget( TQWidget *parent, const char *name )    cbOwnPalette = new TQCheckBox( i18n("Use own color palette"),                                  gbox2, "pal"); -  connect( cbOwnPalette, TQT_SIGNAL( clicked() ), this, TQT_SLOT( useOwnPalette() ) ); +  connect( cbOwnPalette, TQ_SIGNAL( clicked() ), this, TQ_SLOT( useOwnPalette() ) );    cbFastRemap = new TQCheckBox( i18n("Fast palette remapping"), gbox2, "remap"); @@ -112,7 +112,7 @@ GeneralWidget::~GeneralWidget()  void GeneralWidget::slotURLClicked( const TQString & url )  { -  kapp->invokeBrowser( url ); +  tdeApp->invokeBrowser( url );  }  void GeneralWidget::loadSettings( const KuickData& data ) diff --git a/kuickshow/src/generalwidget.h b/kuickshow/src/generalwidget.h index 6220e2e7..f5970e2a 100644 --- a/kuickshow/src/generalwidget.h +++ b/kuickshow/src/generalwidget.h @@ -31,7 +31,7 @@ class KIntNumInput;  class GeneralWidget : public TQWidget  { -    Q_OBJECT +    TQ_OBJECT  public: diff --git a/kuickshow/src/imagewindow.cpp b/kuickshow/src/imagewindow.cpp index 2c227063..f344dbc1 100644 --- a/kuickshow/src/imagewindow.cpp +++ b/kuickshow/src/imagewindow.cpp @@ -53,7 +53,7 @@  #include <kpropertiesdialog.h>  #include <tdestdaccel.h>  #include <kstdguiitem.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h>  #include <tdeglobalsettings.h>  #include <tdetempfile.h>  #include <twin.h> @@ -94,14 +94,14 @@ ImageWindow::~ImageWindow()  void ImageWindow::init()  { -    setFocusPolicy( TQ_StrongFocus ); +    setFocusPolicy( TQWidget::StrongFocus );      KCursor::setAutoHideCursor( this, true, true );      KCursor::setHideCursorDelay( 1500 );      // give the image window a different WM_CLASS      XClassHint hint; -    hint.res_name = const_cast<char*>( kapp->name() ); +    hint.res_name = const_cast<char*>( tdeApp->name() );      hint.res_class = const_cast<char*>( "ImageWindow" );      XSetClassHint( x11Display(), winId(), &hint ); @@ -146,103 +146,103 @@ void ImageWindow::updateActions()  void ImageWindow::setupActions()  {      new TDEAction( i18n("Show Next Image"), TDEStdAccel::next(), -                 TQT_TQOBJECT(this), TQT_SLOT( slotRequestNext() ), +                 this, TQ_SLOT( slotRequestNext() ),                   m_actions, "next_image" );      new TDEAction( i18n("Show Previous Image"), TDEStdAccel::prior(), -                 TQT_TQOBJECT(this), TQT_SLOT( slotRequestPrevious() ), +                 this, TQ_SLOT( slotRequestPrevious() ),                   m_actions, "previous_image" );      new TDEAction( i18n("Delete Image"), SHIFT + Key_Delete, -                 TQT_TQOBJECT(this), TQT_SLOT( imageDelete() ), +                 this, TQ_SLOT( imageDelete() ),                   m_actions, "delete_image" );      new TDEAction( i18n("Move Image to Trash"), Key_Delete, -                 TQT_TQOBJECT(this), TQT_SLOT( imageTrash() ), +                 this, TQ_SLOT( imageTrash() ),                   m_actions, "trash_image" );      new TDEAction( i18n("Zoom In"), Key_Plus, -                 TQT_TQOBJECT(this), TQT_SLOT( zoomIn() ), +                 this, TQ_SLOT( zoomIn() ),                   m_actions, "zoom_in" );      new TDEAction( i18n("Zoom Out"), Key_Minus, -                 TQT_TQOBJECT(this), TQT_SLOT( zoomOut() ), +                 this, TQ_SLOT( zoomOut() ),                   m_actions, "zoom_out" );      new TDEAction( i18n("Restore Original Size"), Key_O, -                 TQT_TQOBJECT(this), TQT_SLOT( showImageOriginalSize() ), +                 this, TQ_SLOT( showImageOriginalSize() ),                   m_actions, "original_size" );      new TDEAction( i18n("Maximize"), Key_M, -                 TQT_TQOBJECT(this), TQT_SLOT( maximize() ), +                 this, TQ_SLOT( maximize() ),                   m_actions, "maximize" );      new TDEAction( i18n("Rotate 90 Degrees"), Key_9, -                 TQT_TQOBJECT(this), TQT_SLOT( rotate90() ), +                 this, TQ_SLOT( rotate90() ),                   m_actions, "rotate90" );      new TDEAction( i18n("Rotate 180 Degrees"), Key_8, -                 TQT_TQOBJECT(this), TQT_SLOT( rotate180() ), +                 this, TQ_SLOT( rotate180() ),                   m_actions, "rotate180" );      new TDEAction( i18n("Rotate 270 Degrees"), Key_7, -                 TQT_TQOBJECT(this), TQT_SLOT( rotate270() ), +                 this, TQ_SLOT( rotate270() ),                   m_actions, "rotate270" );      new TDEAction( i18n("Flip Horizontally"), Key_Asterisk, -                 TQT_TQOBJECT(this), TQT_SLOT( flipHoriz() ), +                 this, TQ_SLOT( flipHoriz() ),                   m_actions, "flip_horicontally" );      new TDEAction( i18n("Flip Vertically"), Key_Slash, -                 TQT_TQOBJECT(this), TQT_SLOT( flipVert() ), +                 this, TQ_SLOT( flipVert() ),                   m_actions, "flip_vertically" );      new TDEAction( i18n("Print Image..."), TDEStdAccel::print(), -                 TQT_TQOBJECT(this), TQT_SLOT( printImage() ), +                 this, TQ_SLOT( printImage() ),                   m_actions, "print_image" ); -    KStdAction::saveAs( TQT_TQOBJECT(this), TQT_SLOT( saveImage() ), +    KStdAction::saveAs( this, TQ_SLOT( saveImage() ),                   m_actions, "save_image_as" ); -    KStdAction::close( TQT_TQOBJECT(this), TQT_SLOT( close() ), +    KStdAction::close( this, TQ_SLOT( close() ),                   m_actions, "close_image" );      // --------      new TDEAction( i18n("More Brightness"), Key_B, -                 TQT_TQOBJECT(this), TQT_SLOT( moreBrightness() ), +                 this, TQ_SLOT( moreBrightness() ),                   m_actions, "more_brightness" );      new TDEAction( i18n("Less Brightness"), SHIFT + Key_B, -                 TQT_TQOBJECT(this), TQT_SLOT( lessBrightness() ), +                 this, TQ_SLOT( lessBrightness() ),                   m_actions, "less_brightness" );      new TDEAction( i18n("More Contrast"), Key_C, -                 TQT_TQOBJECT(this), TQT_SLOT( moreContrast() ), +                 this, TQ_SLOT( moreContrast() ),                   m_actions, "more_contrast" );      new TDEAction( i18n("Less Contrast"), SHIFT + Key_C, -                 TQT_TQOBJECT(this), TQT_SLOT( lessContrast() ), +                 this, TQ_SLOT( lessContrast() ),                   m_actions, "less_contrast" );      new TDEAction( i18n("More Gamma"), Key_G, -                 TQT_TQOBJECT(this), TQT_SLOT( moreGamma() ), +                 this, TQ_SLOT( moreGamma() ),                   m_actions, "more_gamma" );      new TDEAction( i18n("Less Gamma"), SHIFT + Key_G, -                 TQT_TQOBJECT(this), TQT_SLOT( lessGamma() ), +                 this, TQ_SLOT( lessGamma() ),                   m_actions, "less_gamma" );      // --------      new TDEAction( i18n("Scroll Up"), Key_Up, -                 TQT_TQOBJECT(this), TQT_SLOT( scrollUp() ), +                 this, TQ_SLOT( scrollUp() ),                   m_actions, "scroll_up" );      new TDEAction( i18n("Scroll Down"), Key_Down, -                 TQT_TQOBJECT(this), TQT_SLOT( scrollDown() ), +                 this, TQ_SLOT( scrollDown() ),                   m_actions, "scroll_down" );      new TDEAction( i18n("Scroll Left"), Key_Left, -                 TQT_TQOBJECT(this), TQT_SLOT( scrollLeft() ), +                 this, TQ_SLOT( scrollLeft() ),                   m_actions, "scroll_left" );      new TDEAction( i18n("Scroll Right"), Key_Right, -                 TQT_TQOBJECT(this), TQT_SLOT( scrollRight() ), +                 this, TQ_SLOT( scrollRight() ),                   m_actions, "scroll_right" );      // --------      new TDEAction( i18n("Pause Slideshow"), Key_P, -                 TQT_TQOBJECT(this), TQT_SLOT( pauseSlideShow() ), +                 this, TQ_SLOT( pauseSlideShow() ),                   m_actions, "kuick_slideshow_pause" ); -    TDEAction *fullscreenAction = KStdAction::fullScreen(TQT_TQOBJECT(this), TQT_SLOT( toggleFullscreen() ), m_actions, 0 ); +    TDEAction *fullscreenAction = KStdAction::fullScreen(this, TQ_SLOT( toggleFullscreen() ), m_actions, 0 );      TDEAction *reloadAction = new TDEAction( i18n("Reload Image"), TDEStdAccel::shortcut(TDEStdAccel::Reload), -                                         TQT_TQOBJECT(this), TQT_SLOT( reload() ), +                                         this, TQ_SLOT( reload() ),                                           m_actions, "reload_image" );      new TDEAction( i18n("Properties"), ALT + Key_Return, -                 TQT_TQOBJECT(this), TQT_SLOT( slotProperties() ), +                 this, TQ_SLOT( slotProperties() ),                   m_actions, "properties" );      m_actions->readShortcutSettings(); @@ -312,7 +312,7 @@ void ImageWindow::updateGeometry( int imWidth, int imHeight )                              "%3 (%1 x %2)" );      caption = caption.arg( m_kuim->originalWidth() ).                arg( m_kuim->originalHeight() ).arg( m_kuim->url().prettyURL() ); -    setCaption( kapp->makeStdCaption( caption ) ); +    setCaption( tdeApp->makeStdCaption( caption ) );  } @@ -630,7 +630,7 @@ void ImageWindow::mousePressEvent( TQMouseEvent *e )      xposPress = xmove;      yposPress = ymove; -    if ( e->button() == Qt::LeftButton ) { +    if ( e->button() == TQt::LeftButton ) {          if ( e->state() & ShiftButton )              updateCursor( ZoomCursor );          else @@ -675,7 +675,7 @@ void ImageWindow::updateCursor( KuickCursor cursor )  void ImageWindow::mouseMoveEvent( TQMouseEvent *e )  { -    if ( !(e->state() & Qt::LeftButton) ) { // only handle LeftButton actions +    if ( !(e->state() & TQt::LeftButton) ) { // only handle LeftButton actions  	return;      } @@ -736,7 +736,7 @@ void ImageWindow::mouseReleaseEvent( TQMouseEvent *e )      }      // only proceed if shift-Key is still pressed -    if ( !(e->button() == Qt::LeftButton && e->state() & ShiftButton) ) +    if ( !(e->button() == TQt::LeftButton && e->state() & ShiftButton) )  	return;      int neww, newh, topX, topY, botX, botY; diff --git a/kuickshow/src/imagewindow.h b/kuickshow/src/imagewindow.h index fbc8b900..30d2c00e 100644 --- a/kuickshow/src/imagewindow.h +++ b/kuickshow/src/imagewindow.h @@ -37,7 +37,7 @@ class KuickFile;  class ImageWindow : public ImlibWidget  { -  Q_OBJECT +  TQ_OBJECT  public: diff --git a/kuickshow/src/imlibwidget.cpp b/kuickshow/src/imlibwidget.cpp index 530875e8..631e540d 100644 --- a/kuickshow/src/imlibwidget.cpp +++ b/kuickshow/src/imlibwidget.cpp @@ -117,8 +117,8 @@ void ImlibWidget::init()      setBackgroundMode( PaletteBackground );      imageCache = new ImageCache( id, 4 ); // cache 4 images (FIXME?) -    connect( imageCache, TQT_SIGNAL( sigBusy() ), TQT_SLOT( setBusyCursor() )); -    connect( imageCache, TQT_SIGNAL( sigIdle() ), TQT_SLOT( restoreCursor() )); +    connect( imageCache, TQ_SIGNAL( sigBusy() ), TQ_SLOT( setBusyCursor() )); +    connect( imageCache, TQ_SIGNAL( sigIdle() ), TQ_SLOT( restoreCursor() ));      win = XCreateSimpleWindow(x11Display(), winId(), 0,0,w,h,0,0,0);  } @@ -206,7 +206,7 @@ bool ImlibWidget::cacheImage( const KURL& url )          if ( !file->download() ) {              return false;          } -        connect( file, TQT_SIGNAL( downloaded( KuickFile * )), TQT_SLOT( cacheImage( KuickFile * )) ); +        connect( file, TQ_SIGNAL( downloaded( KuickFile * )), TQ_SLOT( cacheImage( KuickFile * )) );          return true; // optimistic      }  } @@ -320,7 +320,7 @@ bool ImlibWidget::autoRotate( KuickImage *kuim )      switch ( metaitem.value().toInt() )      { -        //  Qt::Orientation: +        //  Orientation:          //  1:      normal          //  2:      flipped horizontally          //  3:      ROT 180 @@ -647,8 +647,8 @@ KuickImage * ImageCache::getKuimage( KuickFile * file,  	Imlib_set_image_modifier( myId, im, &mod );  	kuim = new KuickImage( file, im, myId ); -	connect( kuim, TQT_SIGNAL( startRendering() ),   TQT_SLOT( slotBusy() )); -	connect( kuim, TQT_SIGNAL( stoppedRendering() ), TQT_SLOT( slotIdle() )); +	connect( kuim, TQ_SIGNAL( startRendering() ),   TQ_SLOT( slotBusy() )); +	connect( kuim, TQ_SIGNAL( stoppedRendering() ), TQ_SLOT( slotIdle() ));  	kuickList.insert( 0, kuim );  	fileList.prepend( file ); diff --git a/kuickshow/src/imlibwidget.h b/kuickshow/src/imlibwidget.h index abbd1345..76f01724 100644 --- a/kuickshow/src/imlibwidget.h +++ b/kuickshow/src/imlibwidget.h @@ -36,7 +36,7 @@ class KuickImage;  class ImageCache : public TQObject  { -  Q_OBJECT +  TQ_OBJECT  public: @@ -75,7 +75,7 @@ class TQColor;  class ImlibWidget : public TQWidget  { -  Q_OBJECT +  TQ_OBJECT  public: @@ -121,7 +121,7 @@ public:    ImlibData*	getImlibData() const 	       { return id; 		  } -  virtual void  reparent( TQWidget* parent, WFlags f, const TQPoint& p, bool showIt = FALSE ); +  virtual void  reparent( TQWidget* parent, WFlags f, const TQPoint& p, bool showIt = false );  public slots:    void	        rotate90(); diff --git a/kuickshow/src/kuickconfigdlg.cpp b/kuickshow/src/kuickconfigdlg.cpp index baee42b8..a6c520b9 100644 --- a/kuickshow/src/kuickconfigdlg.cpp +++ b/kuickshow/src/kuickconfigdlg.cpp @@ -64,7 +64,7 @@ KuickConfigDialog::KuickConfigDialog( TDEActionCollection *_coll, TQWidget *pare      box = addVBoxPage( i18n("Bro&wser Shortcuts") );      browserKeyChooser = new KKeyChooser( coll, box ); -    connect( this, TQT_SIGNAL( defaultClicked() ), TQT_SLOT( resetDefaults() )); +    connect( this, TQ_SIGNAL( defaultClicked() ), TQ_SLOT( resetDefaults() ));  }  KuickConfigDialog::~KuickConfigDialog() diff --git a/kuickshow/src/kuickconfigdlg.h b/kuickshow/src/kuickconfigdlg.h index c9261b8f..59a54202 100644 --- a/kuickshow/src/kuickconfigdlg.h +++ b/kuickshow/src/kuickconfigdlg.h @@ -32,7 +32,7 @@ class ImageWindow;  class KuickConfigDialog : public KDialogBase  { -    Q_OBJECT +    TQ_OBJECT  public: diff --git a/kuickshow/src/kuickfile.cpp b/kuickshow/src/kuickfile.cpp index 0f970f85..18c80331 100644 --- a/kuickshow/src/kuickfile.cpp +++ b/kuickshow/src/kuickfile.cpp @@ -2,7 +2,7 @@  #include <kdebug.h>  #include <tdeversion.h> -#include <kinstance.h> +#include <tdeinstance.h>  #include <tdelocale.h>  #include <kprogress.h>  #include <tdeio/job.h> @@ -86,8 +86,8 @@ bool KuickFile::download()      m_job = TDEIO::file_copy( m_url, destURL, -1, true, false, false ); // handling progress ourselves      m_job->setAutoErrorHandlingEnabled( true ); -    connect( m_job, TQT_SIGNAL( result( TDEIO::Job * )), TQT_SLOT( slotResult( TDEIO::Job * ) )); -    connect( m_job, TQT_SIGNAL( percent( TDEIO::Job *, unsigned long )), TQT_SLOT( slotProgress( TDEIO::Job *, unsigned long ) )); +    connect( m_job, TQ_SIGNAL( result( TDEIO::Job * )), TQ_SLOT( slotResult( TDEIO::Job * ) )); +    connect( m_job, TQ_SIGNAL( percent( TDEIO::Job *, unsigned long )), TQ_SLOT( slotProgress( TDEIO::Job *, unsigned long ) ));      // TODO: generify background/foreground downloading? diff --git a/kuickshow/src/kuickfile.h b/kuickshow/src/kuickfile.h index 78901ca7..9f8f0129 100644 --- a/kuickshow/src/kuickfile.h +++ b/kuickshow/src/kuickfile.h @@ -23,7 +23,7 @@ namespace TDEIO {  class KuickFile : public TQObject  { -    Q_OBJECT +    TQ_OBJECT  public: diff --git a/kuickshow/src/kuickimage.cpp b/kuickshow/src/kuickimage.cpp index db8065f9..1c68bdab 100644 --- a/kuickshow/src/kuickimage.cpp +++ b/kuickshow/src/kuickimage.cpp @@ -213,8 +213,8 @@ bool KuickImage::smoothResize( int newWidth, int newHeight )  //	tqDebug("-- smoothResize: %i x %i", newWidth, newHeight);  	TQImage *image = newTQImage(); -	// Note: TQ_ScaleMin seems to have a bug (off-by-one, sometimes results in width being 1 pixel too small) -	TQImage scaledImage = image->smoothScale(newWidth, newHeight, TQ_ScaleFree); +	// Note: TQImage::ScaleMin seems to have a bug (off-by-one, sometimes results in width being 1 pixel too small) +	TQImage scaledImage = image->smoothScale(newWidth, newHeight, TQImage::ScaleFree);  	delete image; diff --git a/kuickshow/src/kuickimage.h b/kuickshow/src/kuickimage.h index 540df361..10c5d375 100644 --- a/kuickshow/src/kuickimage.h +++ b/kuickshow/src/kuickimage.h @@ -27,7 +27,7 @@  class KuickImage : public TQObject  { -  Q_OBJECT +  TQ_OBJECT  public: diff --git a/kuickshow/src/kuickshow.cpp b/kuickshow/src/kuickshow.cpp index f6260aae..13d0a8f2 100644 --- a/kuickshow/src/kuickshow.cpp +++ b/kuickshow/src/kuickshow.cpp @@ -51,7 +51,7 @@  #include <kprotocolinfo.h>  #include <kstatusbar.h>  #include <kstdaction.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h>  #include <tdestartupinfo.h>  #include <tdetoolbar.h>  #include <kurlcombobox.h> @@ -111,7 +111,7 @@ KuickShow::KuickShow( const char *name )      resize( 400, 500 );      m_slideTimer = new TQTimer( this ); -    connect( m_slideTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( nextSlide() )); +    connect( m_slideTimer, TQ_SIGNAL( timeout() ), TQ_SLOT( nextSlide() ));      TDEConfig *kc = TDEGlobal::config(); @@ -192,7 +192,7 @@ KuickShow::KuickShow( const char *name )      if ( s_viewers.isEmpty() || isDir ) {          initGUI( startDir ); -	if (!kapp->isRestored()) // during session management, readProperties() will show() +	if (!tdeApp->isRestored()) // during session management, readProperties() will show()              show();      } @@ -212,7 +212,7 @@ KuickShow::~KuickShow()      FileCache::shutdown();      free( id ); -    kapp->quit(); +    tdeApp->quit();      delete kdata;  } @@ -231,39 +231,39 @@ void KuickShow::initGUI( const KURL& startDir )      redirectDeleteAndTrashActions(coll); -    connect( fileWidget, TQT_SIGNAL( fileSelected( const KFileItem * ) ), -             this, TQT_SLOT( slotSelected( const KFileItem * ) )); +    connect( fileWidget, TQ_SIGNAL( fileSelected( const KFileItem * ) ), +             this, TQ_SLOT( slotSelected( const KFileItem * ) )); -    connect( fileWidget, TQT_SIGNAL( fileHighlighted( const KFileItem * )), -             this, TQT_SLOT( slotHighlighted( const KFileItem * ) )); +    connect( fileWidget, TQ_SIGNAL( fileHighlighted( const KFileItem * )), +             this, TQ_SLOT( slotHighlighted( const KFileItem * ) )); -    connect( fileWidget, TQT_SIGNAL( urlEntered( const KURL&  )), -             this, TQT_SLOT( dirSelected( const KURL& )) ); +    connect( fileWidget, TQ_SIGNAL( urlEntered( const KURL&  )), +             this, TQ_SLOT( dirSelected( const KURL& )) );      fileWidget->setAcceptDrops(true); -    connect( fileWidget, TQT_SIGNAL( dropped( const KFileItem *, TQDropEvent *, const KURL::List & )), -             this, TQT_SLOT( slotDropped( const KFileItem *, TQDropEvent *, const KURL::List &)) ); +    connect( fileWidget, TQ_SIGNAL( dropped( const KFileItem *, TQDropEvent *, const KURL::List & )), +             this, TQ_SLOT( slotDropped( const KFileItem *, TQDropEvent *, const KURL::List &)) );      // setup actions -    TDEAction *open = KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT( slotOpenURL() ), +    TDEAction *open = KStdAction::open( this, TQ_SLOT( slotOpenURL() ),                                        coll, "openURL" ); -    TDEAction *print = KStdAction::print( TQT_TQOBJECT(this), TQT_SLOT( slotPrint() ), +    TDEAction *print = KStdAction::print( this, TQ_SLOT( slotPrint() ),                                          coll, "kuick_print" );      print->setText( i18n("Print Image...") );      TDEAction *configure = new TDEAction( i18n("Configure %1...").arg( TDEGlobal::instance()->aboutData()->programName() ), "configure",                                        TDEShortcut(), -                                      TQT_TQOBJECT(this), TQT_SLOT( configuration() ), +                                      this, TQ_SLOT( configuration() ),                                        coll, "kuick_configure" );      TDEAction *slide = new TDEAction( i18n("Start Slideshow" ), "ksslide",                                    TDEShortcut( Key_F2 ), -                                  TQT_TQOBJECT(this), TQT_SLOT( startSlideShow() ), +                                  this, TQ_SLOT( startSlideShow() ),                                    coll, "kuick_slideshow" );      TDEAction *about = new TDEAction( i18n( "About KuickShow" ), "about",                                    TDEShortcut(), -                                  TQT_TQOBJECT(this), TQT_SLOT( about() ), coll, "about" ); +                                  this, TQ_SLOT( about() ), coll, "about" );      oneWindowAction = new TDEToggleAction( i18n("Open Only One Image Window"),                                           "window-new", @@ -272,21 +272,21 @@ void KuickShow::initGUI( const KURL& startDir )      m_toggleBrowserAction = new TDEToggleAction( i18n("Show File Browser"), TDEShortcut( Key_Space ), coll, "toggleBrowser" );      m_toggleBrowserAction->setCheckedState(i18n("Hide File Browser")); -    connect( m_toggleBrowserAction, TQT_SIGNAL( toggled( bool ) ), -             TQT_SLOT( toggleBrowser() )); +    connect( m_toggleBrowserAction, TQ_SIGNAL( toggled( bool ) ), +             TQ_SLOT( toggleBrowser() ));      TDEAction *showInOther = new TDEAction( i18n("Show Image"), TDEShortcut(), -                                        TQT_TQOBJECT(this), TQT_SLOT( slotShowInOtherWindow() ), +                                        this, TQ_SLOT( slotShowInOtherWindow() ),                                          coll, "kuick_showInOtherWindow" );      TDEAction *showInSame = new TDEAction( i18n("Show Image in Active Window"),                                         TDEShortcut(), -                                       TQT_TQOBJECT(this), TQT_SLOT( slotShowInSameWindow() ), +                                       this, TQ_SLOT( slotShowInSameWindow() ),                                         coll, "kuick_showInSameWindow" );      TDEAction *showFullscreen = new TDEAction( i18n("Show Image in Fullscreen Mode"), -					   TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( slotShowFullscreen() ), +					   TDEShortcut(), this, TQ_SLOT( slotShowFullscreen() ),  					   coll, "kuick_showFullscreen" ); -    TDEAction *quit = KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(slotQuit()), coll, "quit"); +    TDEAction *quit = KStdAction::quit( this, TQ_SLOT(slotQuit()), coll, "quit");      // remove TQString() parameter -- ellis      coll->readShortcutSettings( TQString() ); @@ -394,10 +394,10 @@ void KuickShow::initGUI( const KURL& startDir )      addressToolBar->insertWidget( ID_ADDRESSBAR, 1, cmbPath);      addressToolBar->setItemAutoSized( ID_ADDRESSBAR ); -    connect( cmbPath, TQT_SIGNAL( urlActivated( const KURL& )), -             this, TQT_SLOT( slotSetURL( const KURL& ))); -    connect( cmbPath, TQT_SIGNAL( returnPressed()), -             this, TQT_SLOT( slotURLComboReturnPressed())); +    connect( cmbPath, TQ_SIGNAL( urlActivated( const KURL& )), +             this, TQ_SLOT( slotSetURL( const KURL& ))); +    connect( cmbPath, TQ_SIGNAL( returnPressed()), +             this, TQ_SLOT( slotURLComboReturnPressed()));      fileWidget->initActions(); @@ -422,14 +422,14 @@ void KuickShow::redirectDeleteAndTrashActions(TDEActionCollection *coll)      if (action)      {          action->disconnect(fileWidget); -        connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(slotDeleteCurrentImage())); +        connect(action, TQ_SIGNAL(activated()), this, TQ_SLOT(slotDeleteCurrentImage()));      }      action = coll->action("trash");      if (action)      {          action->disconnect(fileWidget); -        connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(slotTrashCurrentImage())); +        connect(action, TQ_SIGNAL(activated()), this, TQ_SLOT(slotTrashCurrentImage()));      }  } @@ -537,19 +537,19 @@ bool KuickShow::showImage( const KFileItem *fi,              m_viewer->setFullscreen( fullscreen );              s_viewers.append( m_viewer ); -            connect( m_viewer, TQT_SIGNAL( destroyed() ), TQT_SLOT( viewerDeleted() )); -            connect( m_viewer, TQT_SIGNAL( sigFocusWindow( ImageWindow *) ), -                     this, TQT_SLOT( slotSetActiveViewer( ImageWindow * ) )); -            connect( m_viewer, TQT_SIGNAL( sigImageError(const KuickFile *, const TQString& ) ), -                     this, TQT_SLOT( messageCantLoadImage(const KuickFile *, const TQString &) )); -            connect( m_viewer, TQT_SIGNAL( requestImage( ImageWindow *, int )), -                     this, TQT_SLOT( slotAdvanceImage( ImageWindow *, int ))); -	    connect( m_viewer, TQT_SIGNAL( pauseSlideShowSignal() ), -		     this, TQT_SLOT( pauseSlideShow() ) ); -            connect( m_viewer, TQT_SIGNAL (deleteImage (ImageWindow *)), -                     this, TQT_SLOT (slotDeleteCurrentImage (ImageWindow *))); -            connect( m_viewer, TQT_SIGNAL (trashImage (ImageWindow *)), -                     this, TQT_SLOT (slotTrashCurrentImage (ImageWindow *))); +            connect( m_viewer, TQ_SIGNAL( destroyed() ), TQ_SLOT( viewerDeleted() )); +            connect( m_viewer, TQ_SIGNAL( sigFocusWindow( ImageWindow *) ), +                     this, TQ_SLOT( slotSetActiveViewer( ImageWindow * ) )); +            connect( m_viewer, TQ_SIGNAL( sigImageError(const KuickFile *, const TQString& ) ), +                     this, TQ_SLOT( messageCantLoadImage(const KuickFile *, const TQString &) )); +            connect( m_viewer, TQ_SIGNAL( requestImage( ImageWindow *, int )), +                     this, TQ_SLOT( slotAdvanceImage( ImageWindow *, int ))); +	    connect( m_viewer, TQ_SIGNAL( pauseSlideShowSignal() ), +		     this, TQ_SLOT( pauseSlideShow() ) ); +            connect( m_viewer, TQ_SIGNAL (deleteImage (ImageWindow *)), +                     this, TQ_SLOT (slotDeleteCurrentImage (ImageWindow *))); +            connect( m_viewer, TQ_SIGNAL (trashImage (ImageWindow *)), +                     this, TQ_SLOT (slotTrashCurrentImage (ImageWindow *)));              if ( s_viewers.count() == 1 && moveToTopLeft ) {                  // we have to move to 0x0 before showing _and_                  // after showing, otherwise we get some bogus geometry() @@ -698,7 +698,7 @@ void KuickShow::tryShowNextImage()          if (!haveBrowser())          {              // ### when simply calling toggleBrowser(), this main window is completely messed up -            TQTimer::singleShot(0, this, TQT_SLOT(toggleBrowser())); +            TQTimer::singleShot(0, this, TQ_SLOT(toggleBrowser()));          }          m_viewer->deleteLater();      } @@ -873,14 +873,14 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e )  {      if ( m_delayedRepeatItem ) // we probably need to install an eventFilter over  	{ -        return true;    // kapp, to make it really safe +        return true;    // tdeApp, to make it really safe  	}      bool ret = false;      int eventType = e->type();      TQKeyEvent *k = 0L;      if ( eventType == TQEvent::KeyPress ) -        k = TQT_TQKEYEVENT( e ); +        k = static_cast<TQKeyEvent*>( e );      if ( k ) {          if ( TDEStdAccel::quit().contains( KKey( k ) ) ) { @@ -952,7 +952,7 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e )                          if ( fileWidget->dirLister()->rootItem() )                          {                              fileWidget->setCurrentItem( file->url().fileName() ); -                            TQTimer::singleShot( 0, this, TQT_SLOT( slotReplayEvent())); +                            TQTimer::singleShot( 0, this, TQ_SLOT( slotReplayEvent()));                          }                          else // finished, but no root-item -- probably an error, kill repeat-item!                          { @@ -962,8 +962,8 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e )                      else // not finished yet                      {                          fileWidget->setInitialItem( file->url().fileName() ); -                        connect( fileWidget, TQT_SIGNAL( finished() ), -                                 TQT_SLOT( slotReplayEvent() )); +                        connect( fileWidget, TQ_SIGNAL( finished() ), +                                 TQ_SLOT( slotReplayEvent() ));                      }                      return true; @@ -1036,8 +1036,8 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e )          // and shows browser when last window closed via doubleclick          else if ( eventType == TQEvent::MouseButtonDblClick )          { -            TQMouseEvent *ev = TQT_TQMOUSEEVENT( e ); -            if ( ev->button() == Qt::LeftButton ) +            TQMouseEvent *ev = static_cast<TQMouseEvent*>( e ); +            if ( ev->button() == TQt::LeftButton )              {                  if ( s_viewers.count() == 1 )                  { @@ -1079,14 +1079,14 @@ void KuickShow::configuration()      dialog = new KuickConfigDialog( fileWidget->actionCollection(), 0L,                                      "dialog", false );      dialog->resize( 540, 510 ); -    dialog->setIcon( kapp->miniIcon() ); +    dialog->setIcon( tdeApp->miniIcon() ); -    connect( dialog, TQT_SIGNAL( okClicked() ), -             this, TQT_SLOT( slotConfigApplied() ) ); -    connect( dialog, TQT_SIGNAL( applyClicked() ), -             this, TQT_SLOT( slotConfigApplied() ) ); -    connect( dialog, TQT_SIGNAL( finished() ), -             this, TQT_SLOT( slotConfigClosed() ) ); +    connect( dialog, TQ_SIGNAL( okClicked() ), +             this, TQ_SLOT( slotConfigApplied() ) ); +    connect( dialog, TQ_SIGNAL( applyClicked() ), +             this, TQ_SLOT( slotConfigApplied() ) ); +    connect( dialog, TQ_SIGNAL( finished() ), +             this, TQ_SLOT( slotConfigClosed() ) );      fileWidget->actionCollection()->action( "kuick_configure" )->setEnabled( false );      dialog->show(); @@ -1294,19 +1294,19 @@ void KuickShow::abortDelayedEvent()  void KuickShow::slotReplayEvent()  { -    disconnect( fileWidget, TQT_SIGNAL( finished() ), -                this, TQT_SLOT( slotReplayEvent() )); +    disconnect( fileWidget, TQ_SIGNAL( finished() ), +                this, TQ_SLOT( slotReplayEvent() ));      DelayedRepeatEvent *e = m_delayedRepeatItem;      m_delayedRepeatItem = 0L; // otherwise, eventFilter aborts -    eventFilter( TQT_TQOBJECT(e->viewer), TQT_TQEVENT(e->event) ); +    eventFilter( e->viewer, static_cast<TQEvent*>(e->event) );      delete e;      // ### WORKAROUND for TQIconView bug in TQt <= 3.0.3 at least      if ( fileWidget && fileWidget->view() ) {          TQWidget *widget = fileWidget->view()->widget(); -        if ( widget->inherits( TQICONVIEW_OBJECT_NAME_STRING ) || widget->child(0, TQICONVIEW_OBJECT_NAME_STRING ) ){ +        if ( widget->inherits( "TQIconView" ) || widget->child(0, "TQIconView" ) ){              fileWidget->setSorting( fileWidget->sorting() );          }      } @@ -1320,7 +1320,7 @@ void KuickShow::replayAdvance(DelayedRepeatEvent *event)      // rely on sorting to be correct before the TQIconView has been show()n.      if ( fileWidget && fileWidget->view() ) {          TQWidget *widget = fileWidget->view()->widget(); -        if ( widget->inherits( TQICONVIEW_OBJECT_NAME_STRING ) || widget->child(0, TQICONVIEW_OBJECT_NAME_STRING ) ){ +        if ( widget->inherits( "TQIconView" ) || widget->child(0, "TQIconView" ) ){              fileWidget->setSorting( fileWidget->sorting() );          }      } @@ -1346,13 +1346,13 @@ void KuickShow::delayAction(DelayedRepeatEvent *event)           fileWidget->dirLister()->rootItem() )      {          fileWidget->setCurrentItem( url.fileName() ); -        TQTimer::singleShot( 0, this, TQT_SLOT( doReplay())); +        TQTimer::singleShot( 0, this, TQ_SLOT( doReplay()));      }      else      {          fileWidget->setInitialItem( url.fileName() ); -        connect( fileWidget, TQT_SIGNAL( finished() ), -                 TQT_SLOT( doReplay() )); +        connect( fileWidget, TQ_SIGNAL( finished() ), +                 TQ_SLOT( doReplay() ));      }  } @@ -1361,8 +1361,8 @@ void KuickShow::doReplay()      if (!m_delayedRepeatItem)          return; -    disconnect( fileWidget, TQT_SIGNAL( finished() ), -                this, TQT_SLOT( doReplay() )); +    disconnect( fileWidget, TQ_SIGNAL( finished() ), +                this, TQ_SLOT( doReplay() ));      switch (m_delayedRepeatItem->action)      { @@ -1424,7 +1424,7 @@ void KuickShow::deleteAllViewers()  {      TQValueListIterator<ImageWindow*> it = s_viewers.begin();      for ( ; it != s_viewers.end(); ++it ) { -        (*it)->disconnect( TQT_SIGNAL( destroyed() ), this, TQT_SLOT( viewerDeleted() )); +        (*it)->disconnect( TQ_SIGNAL( destroyed() ), this, TQ_SLOT( viewerDeleted() ));          (*it)->close( true );      } diff --git a/kuickshow/src/kuickshow.desktop b/kuickshow/src/kuickshow.desktop index 11d118dd..f9163d29 100644 --- a/kuickshow/src/kuickshow.desktop +++ b/kuickshow/src/kuickshow.desktop @@ -3,7 +3,7 @@ Name=Kuickshow  Exec=kuickshow %i %m -caption "%c" %U  Icon=kuickshow  Type=Application -MimeType=image/gif;image/x-xpm;image/x-xbm;image/jpeg;image/png;image/tiff;image/x-bmp;image/x-psd;image/x-eim;image/x-portable-bitmap;image/x-portable-pixmap;image/x-portable-greymap; +MimeType=image/gif;image/x-xpm;image/x-xbm;image/jpeg;image/png;image/tiff;image/x-bmp;image/x-psd;image/x-eim;image/x-portable-bitmap;image/x-portable-pixmap;image/x-portable-greymap;image/webp;  X-DocPath=kuickshow/index.html  Terminal=false  X-TDE-InitialPreference=6 diff --git a/kuickshow/src/kuickshow.h b/kuickshow/src/kuickshow.h index 79d05889..dd8e34f2 100644 --- a/kuickshow/src/kuickshow.h +++ b/kuickshow/src/kuickshow.h @@ -81,7 +81,7 @@ public:  class KuickShow : public TDEMainWindow  { -    Q_OBJECT +    TQ_OBJECT  public: diff --git a/kuickshow/src/kurlwidget.cpp b/kuickshow/src/kurlwidget.cpp index 342c78c5..4cab4a79 100644 --- a/kuickshow/src/kurlwidget.cpp +++ b/kuickshow/src/kurlwidget.cpp @@ -27,7 +27,7 @@ KURLWidget::KURLWidget(const TQString& text, TQWidget *parent, const char *name)      : KURLLabel( parent, name )  {      setText( text ); -    connect( this, TQT_SIGNAL( leftClickedURL() ), TQT_SLOT( run() )); +    connect( this, TQ_SIGNAL( leftClickedURL() ), TQ_SLOT( run() ));      setUseTips( true );  } diff --git a/kuickshow/src/kurlwidget.h b/kuickshow/src/kurlwidget.h index 95ea073b..85ebd498 100644 --- a/kuickshow/src/kurlwidget.h +++ b/kuickshow/src/kurlwidget.h @@ -23,7 +23,7 @@  class KURLWidget : public KURLLabel  { -    Q_OBJECT +    TQ_OBJECT  public: diff --git a/kuickshow/src/main.cpp b/kuickshow/src/main.cpp index f2633626..547b249b 100644 --- a/kuickshow/src/main.cpp +++ b/kuickshow/src/main.cpp @@ -36,7 +36,7 @@ static TDECmdLineOptions options[] =      TDECmdLineLastOption  }; -extern "C" KDE_EXPORT int kdemain(int argc, char **argv) +extern "C" TDE_EXPORT int kdemain(int argc, char **argv)  {      TDEAboutData about(  	  "kuickshow", I18N_NOOP( "KuickShow" ), KUICKSHOWVERSION, diff --git a/kuickshow/src/mainwidget.h b/kuickshow/src/mainwidget.h index f9f64690..ca89c082 100644 --- a/kuickshow/src/mainwidget.h +++ b/kuickshow/src/mainwidget.h @@ -27,7 +27,7 @@ class FileView;  class MainWidget : public TQWidget  { -  Q_OBJECT +  TQ_OBJECT  public: diff --git a/kuickshow/src/printing.cpp b/kuickshow/src/printing.cpp index 2f1fd700..3146370e 100644 --- a/kuickshow/src/printing.cpp +++ b/kuickshow/src/printing.cpp @@ -93,7 +93,7 @@ bool Printing::printImageWithTQt( const TQString& filename, KPrinter& printer,      // Black & white print?      if ( printer.option( "app-kuickshow-blackwhite" ) != f) { -        image = image.convertDepth( 1, Qt::MonoOnly | Qt::ThresholdDither | Qt::AvoidDither ); +        image = image.convertDepth( 1, TQt::MonoOnly | TQt::ThresholdDither | TQt::AvoidDither );      }      int filenameOffset = 0; @@ -229,7 +229,7 @@ KuickPrintDialogPage::KuickPrintDialogPage( TQWidget *parent, const char *name )      m_scale->setEnabled( false ); // ###      grid->addMultiCellWidget( m_scale, 0, 0, 0, 1 );      group->insert( m_scale ); -    connect( m_scale, TQT_SIGNAL( toggled( bool )), TQT_SLOT( toggleScaling( bool ))); +    connect( m_scale, TQ_SIGNAL( toggled( bool )), TQ_SLOT( toggleScaling( bool )));      m_units = new KComboBox( false, widget, "unit combobox" );      grid->addWidget( m_units, 0, 2, AlignLeft ); diff --git a/kuickshow/src/printing.h b/kuickshow/src/printing.h index 1bed7310..b2f38d5e 100644 --- a/kuickshow/src/printing.h +++ b/kuickshow/src/printing.h @@ -49,7 +49,7 @@ private:  class KuickPrintDialogPage : public KPrintDialogPage  { -    Q_OBJECT +    TQ_OBJECT  public: diff --git a/kuickshow/src/slideshowwidget.h b/kuickshow/src/slideshowwidget.h index d24deea0..7f3fcd3a 100644 --- a/kuickshow/src/slideshowwidget.h +++ b/kuickshow/src/slideshowwidget.h @@ -26,7 +26,7 @@ class KIntNumInput;  class SlideShowWidget : public TQWidget  { -    Q_OBJECT +    TQ_OBJECT  public:      SlideShowWidget( TQWidget *parent, const char *name ); | 
