From 4b673fe4b08dc6898ca156328ea9bca9e35fd96a Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Mon, 16 Nov 2026 06:38:24 -0300
Subject: Replace null pointer constants in KuickShow
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Keep the viewer change focused on the KuickShow application.

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 kuickshow/src/aboutwidget.cpp    |  4 +--
 kuickshow/src/aboutwidget.h      |  2 +-
 kuickshow/src/defaultswidget.cpp | 10 +++----
 kuickshow/src/defaultswidget.h   |  2 +-
 kuickshow/src/filecache.cpp      |  6 ++---
 kuickshow/src/filefinder.h       |  2 +-
 kuickshow/src/filewidget.cpp     | 18 ++++++-------
 kuickshow/src/filewidget.h       |  2 +-
 kuickshow/src/imagewindow.cpp    | 20 +++++++-------
 kuickshow/src/imagewindow.h      |  2 +-
 kuickshow/src/imlibwidget.cpp    | 22 +++++++--------
 kuickshow/src/imlibwidget.h      |  2 +-
 kuickshow/src/kuick.cpp          |  2 +-
 kuickshow/src/kuickconfigdlg.h   |  4 +--
 kuickshow/src/kuickfile.cpp      | 16 +++++------
 kuickshow/src/kuickfile.h        |  2 +-
 kuickshow/src/kuickimage.cpp     |  4 +--
 kuickshow/src/kuickshow.cpp      | 58 ++++++++++++++++++++--------------------
 kuickshow/src/kuickshow.h        |  4 +--
 kuickshow/src/kurlwidget.h       |  2 +-
 kuickshow/src/main.cpp           | 14 +++++-----
 kuickshow/src/printing.h         |  4 +--
 22 files changed, 101 insertions(+), 101 deletions(-)

diff --git a/kuickshow/src/aboutwidget.cpp b/kuickshow/src/aboutwidget.cpp
index 6c606e4d..00202363 100644
--- a/kuickshow/src/aboutwidget.cpp
+++ b/kuickshow/src/aboutwidget.cpp
@@ -66,12 +66,12 @@ AboutWidget::AboutWidget( TQWidget *parent, const char *name )
     TQLabel *copy = new TQLabel("(C) 1998-2006", gBox);
     copy->setAlignment( AlignCenter );
 
-    ImlibWidget *im = new ImlibWidget( 0L, gBox, "KuickShow Logo" );
+    ImlibWidget *im = new ImlibWidget( nullptr, gBox, "KuickShow Logo" );
     if ( im->loadImage( file ) )
 	im->setFixedSize( im->width(), im->height() );
     else {
 	delete im;
-	im = 0L;
+	im = nullptr;
 	tqWarning( "KuickShow: about-image not found/unreadable." );
     }
 }
diff --git a/kuickshow/src/aboutwidget.h b/kuickshow/src/aboutwidget.h
index 54f81ec5..a9e7b30b 100644
--- a/kuickshow/src/aboutwidget.h
+++ b/kuickshow/src/aboutwidget.h
@@ -30,7 +30,7 @@ class AboutWidget : public TQVBox
   
 
 public:
-    AboutWidget(TQWidget *parent = 0, const char *name = 0);
+    AboutWidget(TQWidget *parent = nullptr, const char *name = nullptr);
 
 protected:
     ~AboutWidget();
diff --git a/kuickshow/src/defaultswidget.cpp b/kuickshow/src/defaultswidget.cpp
index 0d798bd3..363481dd 100644
--- a/kuickshow/src/defaultswidget.cpp
+++ b/kuickshow/src/defaultswidget.cpp
@@ -34,7 +34,7 @@
 DefaultsWidget::DefaultsWidget( TQWidget *parent, const char *name)
   : TQWidget( parent, name )
 {
-  imFiltered = 0L;
+  imFiltered = nullptr;
 
   cbEnableMods = new TQCheckBox( i18n("Apply default image modifications"), this );
   connect( cbEnableMods, TQ_SIGNAL( toggled(bool) ), TQ_SLOT( enableWidgets(bool) ));
@@ -95,10 +95,10 @@ DefaultsWidget::DefaultsWidget( TQWidget *parent, const char *name)
   gbPreview->setAlignment( AlignCenter );
 
   lbImOrig = new TQLabel( i18n("Original"), gbPreview );
-  imOrig = new ImlibWidget( 0L, gbPreview, "original image" );
+  imOrig = new ImlibWidget( nullptr, gbPreview, "original image" );
 
   lbImFiltered = new TQLabel( i18n("Modified"), gbPreview );
-  imFiltered = new ImlibWidget( 0L, gbPreview, "" );
+  imFiltered = new ImlibWidget( nullptr, gbPreview, "" );
   connect( imFiltered, TQ_SIGNAL( destroyed() ), TQ_SLOT( slotNoImage() ));
 
   ////
@@ -173,9 +173,9 @@ DefaultsWidget::DefaultsWidget( TQWidget *parent, const char *name)
 
   TQString filename = locate( "data", "kuickshow/pics/calibrate.png" );
   if ( !imOrig->loadImage( filename ) )
-    imOrig = 0L; // FIXME - display some errormessage!
+    imOrig = nullptr; // FIXME - display some errormessage!
   if ( !imFiltered->loadImage( filename ) )
-    imFiltered = 0L; // FIXME - display some errormessage!
+    imFiltered = nullptr; // FIXME - display some errormessage!
 
   loadSettings( *kdata );
 
diff --git a/kuickshow/src/defaultswidget.h b/kuickshow/src/defaultswidget.h
index 0215f8f2..af47869b 100644
--- a/kuickshow/src/defaultswidget.h
+++ b/kuickshow/src/defaultswidget.h
@@ -66,7 +66,7 @@ private:
 
 private slots:
   void 		updatePreview();
-  void 		slotNoImage()		{ imFiltered = 0L; }
+  void 		slotNoImage()		{ imFiltered = nullptr; }
   void 		enableWidgets( bool );
 
 };
diff --git a/kuickshow/src/filecache.cpp b/kuickshow/src/filecache.cpp
index fcd12d5f..691ffdd3 100644
--- a/kuickshow/src/filecache.cpp
+++ b/kuickshow/src/filecache.cpp
@@ -12,7 +12,7 @@ FileCache * FileCache::s_self;
 
 FileCache::FileCache()
     : m_limit( 0 ),
-      m_tempDir( 0L )
+      m_tempDir( nullptr )
 {
     m_files.setAutoDelete( true );
     m_files.setMaxCost( 100 ); // good default? ### make configurable?
@@ -28,7 +28,7 @@ void FileCache::shutdown()
     if ( s_self )
     {
         delete s_self;
-        s_self = 0L;
+        s_self = nullptr;
     }
 }
 
@@ -76,7 +76,7 @@ KTempDir * FileCache::createTempDir()
     if ( dir->status() != 0L )
     {
         delete dir;
-        return 0L;
+        return nullptr;
     }
 
     return dir;
diff --git a/kuickshow/src/filefinder.h b/kuickshow/src/filefinder.h
index a53baa45..e0e678dd 100644
--- a/kuickshow/src/filefinder.h
+++ b/kuickshow/src/filefinder.h
@@ -31,7 +31,7 @@ class FileFinder : public KLineEdit
   
 
 public:
-    FileFinder( TQWidget *parent=0, const char *name=0 );
+    FileFinder( TQWidget *parent=nullptr, const char *name=nullptr );
     ~FileFinder();
 
     KURLCompletion *completion() {
diff --git a/kuickshow/src/filewidget.cpp b/kuickshow/src/filewidget.cpp
index 3bb6834b..e547e6d5 100644
--- a/kuickshow/src/filewidget.cpp
+++ b/kuickshow/src/filewidget.cpp
@@ -37,7 +37,7 @@
 FileWidget::FileWidget( const KURL& url, TQWidget *parent, const char *name )
     : KDirOperator( url, parent, name ),
       m_validCompletion( false ),
-      m_fileFinder( 0L )
+      m_fileFinder( nullptr )
 {
     setEnableDirHighlighting( true );
 
@@ -139,7 +139,7 @@ void FileWidget::activatedMenu( const KFileItem *item, const TQPoint& pos )
     actionCollection()->action("kuick_print")->setEnabled( image );
     actionCollection()->action("properties")->setEnabled( item );
 
-    bool hasSelection = (item != 0L);
+    bool hasSelection = (item != nullptr);
     if ( actionCollection()->action("kuick_delete") )
         actionCollection()->action("kuick_delete")->setEnabled( hasSelection );
 
@@ -263,7 +263,7 @@ KFileItem * FileWidget::gotoFirstImage()
 	++it;
     }
 
-    return 0L;
+    return nullptr;
 }
 
 KFileItem * FileWidget::gotoLastImage()
@@ -279,7 +279,7 @@ KFileItem * FileWidget::gotoLastImage()
 	--it;
     }
 
-    return 0L;
+    return nullptr;
 }
 
 KFileItem * FileWidget::getNext( bool go )
@@ -291,7 +291,7 @@ KFileItem * FileWidget::getNext( bool go )
 	return item;
     }
 
-    return 0L;
+    return nullptr;
 }
 
 KFileItem * FileWidget::getPrevious( bool go )
@@ -303,7 +303,7 @@ KFileItem * FileWidget::getPrevious( bool go )
 	return item;
     }
 
-    return 0L;
+    return nullptr;
 }
 
 // returns 0L when there is no previous/next item/image
@@ -328,7 +328,7 @@ KFileItem * FileWidget::getItem( WhichItem which, bool onlyImage ) const
 		    return it.current();
 		--it;
 	    }
-	    return 0L; // no previous item / image
+	    return nullptr; // no previous item / image
 	}
 
 	case Next: {
@@ -338,7 +338,7 @@ KFileItem * FileWidget::getItem( WhichItem which, bool onlyImage ) const
 		    return it.current();
 		++it;
 	    }
-	    return 0L; // no further item / image
+	    return nullptr; // no further item / image
 	}
 	
 	case Current:
@@ -347,7 +347,7 @@ KFileItem * FileWidget::getItem( WhichItem which, bool onlyImage ) const
 	}
     }
 
-    return 0L;
+    return nullptr;
 }
 
 void FileWidget::slotViewChanged()
diff --git a/kuickshow/src/filewidget.h b/kuickshow/src/filewidget.h
index 31d97381..8262e680 100644
--- a/kuickshow/src/filewidget.h
+++ b/kuickshow/src/filewidget.h
@@ -34,7 +34,7 @@ class FileWidget : public KDirOperator
 public:
     enum WhichItem { Previous, Next, Current };
 
-    FileWidget( const KURL& url, TQWidget *parent = 0L, const char *name = 0L );
+    FileWidget( const KURL& url, TQWidget *parent = nullptr, const char *name = nullptr );
     ~FileWidget();
 
     bool hasFiles() const;
diff --git a/kuickshow/src/imagewindow.cpp b/kuickshow/src/imagewindow.cpp
index f1b4d7a2..99cf1e7c 100644
--- a/kuickshow/src/imagewindow.cpp
+++ b/kuickshow/src/imagewindow.cpp
@@ -71,7 +71,7 @@
 
 #undef GrayScale
 
-TQCursor *ImageWindow::s_handCursor = 0L;
+TQCursor *ImageWindow::s_handCursor = nullptr;
 
 ImageWindow::ImageWindow( ImData *_idata, TQWidget *parent, const char *name )
     : ImlibWidget( _idata, parent, name )
@@ -97,10 +97,10 @@ void ImageWindow::init()
     hint.res_class = const_cast<char*>( "ImageWindow" );
     XSetClassHint( x11Display(), winId(), &hint );
 
-    viewerMenu = 0L;
-    gammaMenu = 0L;
-    brightnessMenu = 0L;
-    contrastMenu = 0L;
+    viewerMenu = nullptr;
+    gammaMenu = nullptr;
+    brightnessMenu = nullptr;
+    contrastMenu = nullptr;
 
 
     m_actions = new TDEActionCollection( this );
@@ -116,7 +116,7 @@ void ImageWindow::init()
     setupActions();
     imageCache->setMaxImages( kdata->maxCachedImages );
 
-    transWidget    = 0L;
+    transWidget    = nullptr;
     myIsFullscreen = false;
 
     xpos = 0, ypos = 0;
@@ -227,7 +227,7 @@ void ImageWindow::setupActions()
                  this, TQ_SLOT( pauseSlideShow() ),
                  m_actions, "kuick_slideshow_pause" );
 
-    TDEAction *fullscreenAction = KStdAction::fullScreen(this, TQ_SLOT( toggleFullscreen() ), m_actions, 0 );
+    TDEAction *fullscreenAction = KStdAction::fullScreen(this, TQ_SLOT( toggleFullscreen() ), m_actions, nullptr );
 
     TDEAction *reloadAction = new TDEAction( i18n("Reload Image"), TDEStdAccel::shortcut(TDEStdAccel::Reload),
                                          this, TQ_SLOT( reload() ),
@@ -601,7 +601,7 @@ void ImageWindow::keyReleaseEvent( TQKeyEvent *e )
         updateCursor();
         if ( transWidget ) {
             delete transWidget;
-            transWidget = 0L;
+            transWidget = nullptr;
         }
     }
 
@@ -721,7 +721,7 @@ void ImageWindow::mouseReleaseEvent( TQMouseEvent *e )
     if ( transWidget ) {
        // destroy the transparent widget, used for showing the rectangle (zoom)
 	delete transWidget;
-	transWidget = 0L;
+	transWidget = nullptr;
     }
 
     // only proceed if shift-Key is still pressed
@@ -911,7 +911,7 @@ void ImageWindow::saveImage()
         return;
 
     KuickData tmp;
-    TQCheckBox *keepSize = new TQCheckBox( i18n("Keep original image size"), 0L);
+    TQCheckBox *keepSize = new TQCheckBox( i18n("Keep original image size"), nullptr);
     keepSize->setChecked( true );
     KFileDialog dlg( m_saveDirectory, tmp.fileFilter, this, "filedialog", true ,keepSize);
 
diff --git a/kuickshow/src/imagewindow.h b/kuickshow/src/imagewindow.h
index b068adce..dcd5668d 100644
--- a/kuickshow/src/imagewindow.h
+++ b/kuickshow/src/imagewindow.h
@@ -41,7 +41,7 @@ class ImageWindow : public ImlibWidget
   
 
 public:
-  ImageWindow( ImData *_idata=0, TQWidget *parent=0, const char *name=0 );
+  ImageWindow( ImData *_idata=nullptr, TQWidget *parent=nullptr, const char *name=nullptr );
 
   bool 		showNextImage( KuickFile * file, bool forceReload = false );
   bool 		showNextImage( const KURL& url, bool forceReload = false );
diff --git a/kuickshow/src/imlibwidget.cpp b/kuickshow/src/imlibwidget.cpp
index 9ea192f0..de999e19 100644
--- a/kuickshow/src/imlibwidget.cpp
+++ b/kuickshow/src/imlibwidget.cpp
@@ -80,8 +80,8 @@ void ImlibWidget::init()
     int w = 1; // > 0 for XCreateWindow
     int h = 1;
     myBackgroundColor = TQt::black;
-    m_kuim      = 0L;
-    m_kuickFile = 0L;
+    m_kuim      = nullptr;
+    m_kuickFile = nullptr;
 
     setAutoRender( true );
 
@@ -132,7 +132,7 @@ KuickImage * ImlibWidget::loadImageInternal( KuickFile * file, bool forceReload
     KuickImage *kuim = imageCache->getKuimage( file, forceReload );
     if ( !kuim ) {// couldn't load file, maybe corrupt or wrong format
 	kdWarning() << "ImlibWidget: can't load image " << file->url().prettyURL() << endl;
-	return 0L;
+	return nullptr;
     }
 
     loaded( kuim ); // maybe upscale/downscale/rotate in subclasses
@@ -390,7 +390,7 @@ void ImlibWidget::applyImageModifier( KuickImage *kuim )
     // so save the current alpha lookup table first and restore it afterwards.
     // This to prevent RGB settings from changing the transparency of the image.
     uint8_t alphaLUT[256];
-    imlib_get_color_modifier_tables(NULL, NULL, NULL, alphaLUT);
+    imlib_get_color_modifier_tables(nullptr, nullptr, nullptr, alphaLUT);
 
     // brightness: -256..256 -> -1.0..1.0 (0.0 = identity)
     double bval = colMod.brightness / 256.0;
@@ -412,7 +412,7 @@ void ImlibWidget::applyImageModifier( KuickImage *kuim )
     }
 
     // Restore the original alpha table
-    imlib_set_color_modifier_tables(NULL, NULL, NULL, alphaLUT);
+    imlib_set_color_modifier_tables(nullptr, nullptr, nullptr, alphaLUT);
 
     imlib_context_pop();
     kuim->setDirty( true );
@@ -526,14 +526,14 @@ Imlib_Image ImageCache::fromTQImage( const TQString& fileName ) const
     KImageIO::registerFormats();
     TQImage image( TQFile::encodeName( fileName ).data() );
     if ( image.isNull() )
-        return 0L;
+        return nullptr;
 
     bool hasAlpha = image.hasAlphaBuffer();
     if ( image.depth() != 32 )
     {
         image = image.convertDepth( 32 );
         if ( image.isNull() )
-            return 0L;
+            return nullptr;
     }
 
     int w = image.width();
@@ -578,11 +578,11 @@ static bool imlibAutoOrientsExif( const TQString &format )
 KuickImage * ImageCache::getKuimage( KuickFile * file, bool forceReload )
 {
     if ( !file )
-	return 0L;
+	return nullptr;
 
     assert( file->isAvailable() ); // debug build
-    if ( file->waitForDownload( 0L ) != KuickFile::OK ) // and for users
-    	return 0L;
+    if ( file->waitForDownload( nullptr ) != KuickFile::OK ) // and for users
+	return nullptr;
 
     KuickImage *kuim = nullptr;
     int index = fileList.findIndex( file );
@@ -628,7 +628,7 @@ KuickImage * ImageCache::getKuimage( KuickFile * file, bool forceReload )
 	}
 	slotIdle();
 	if ( !im )
-	    return 0L;
+	    return nullptr;
 
 	kuim = new KuickImage( file, im, context );
 	kuim->setImlibOriented( imlibAutoOrientsExif(format) );
diff --git a/kuickshow/src/imlibwidget.h b/kuickshow/src/imlibwidget.h
index bce3c4bc..6280be01 100644
--- a/kuickshow/src/imlibwidget.h
+++ b/kuickshow/src/imlibwidget.h
@@ -71,7 +71,7 @@ class ImlibWidget : public TQWidget
   
 public:
 
-  ImlibWidget( ImData *_idata=0, TQWidget *parent=0, const char *name=0 );
+  ImlibWidget( ImData *_idata=nullptr, TQWidget *parent=nullptr, const char *name=nullptr );
   virtual ~ImlibWidget();
 
   KURL          url()                   const;
diff --git a/kuickshow/src/kuick.cpp b/kuickshow/src/kuick.cpp
index 24f1677f..65ac0cf0 100644
--- a/kuickshow/src/kuick.cpp
+++ b/kuickshow/src/kuick.cpp
@@ -1,4 +1,4 @@
 #include "kuick.h"
 
-Kuick * Kuick::s_self = 0L;
+Kuick * Kuick::s_self = nullptr;
 TQSize Kuick::s_frameSize;
diff --git a/kuickshow/src/kuickconfigdlg.h b/kuickshow/src/kuickconfigdlg.h
index 59a54202..a1de99f1 100644
--- a/kuickshow/src/kuickconfigdlg.h
+++ b/kuickshow/src/kuickconfigdlg.h
@@ -36,8 +36,8 @@ class KuickConfigDialog : public KDialogBase
   
 
 public:
-    KuickConfigDialog( TDEActionCollection *coll, TQWidget *parent=0,
-		       const char *name=0, bool modal=true);
+    KuickConfigDialog( TDEActionCollection *coll, TQWidget *parent=nullptr,
+		       const char *name=nullptr, bool modal=true);
     ~KuickConfigDialog();
 
     void 		applyConfig();
diff --git a/kuickshow/src/kuickfile.cpp b/kuickshow/src/kuickfile.cpp
index 170ce317..edb5f784 100644
--- a/kuickshow/src/kuickfile.cpp
+++ b/kuickshow/src/kuickfile.cpp
@@ -14,14 +14,14 @@
 KuickFile::KuickFile(const KURL& url)
     : TQObject(),
       m_url( url ),
-      m_job( 0L ),
-      m_progress( 0L ),
+      m_job( nullptr ),
+      m_progress( nullptr ),
       m_currentProgress( 0 )
 {
     if ( m_url.isLocalFile())
         m_localFile = m_url.path();
     else {
-    	const KURL& mostLocal = TDEIO::NetAccess::mostLocalURL( m_url, 0L );
+        const KURL& mostLocal = TDEIO::NetAccess::mostLocalURL( m_url, nullptr );
     	if ( mostLocal.isValid() && mostLocal.isLocalFile() )
     		m_localFile = mostLocal.path();
     }
@@ -47,7 +47,7 @@ TQString KuickFile::localFile() const
 
 bool KuickFile::hasDownloaded() const
 {
-    return !m_url.isLocalFile() && isAvailable() && m_job != 0L;
+    return !m_url.isLocalFile() && isAvailable() && !m_job;
 }
 
 // ### need an API for refreshing the file?
@@ -90,7 +90,7 @@ bool KuickFile::download()
 
     // TODO: generify background/foreground downloading?
 
-    return m_job != 0L;
+    return m_job != nullptr;
 }
 
 KuickFile::DownloadStatus KuickFile::waitForDownload( TQWidget *parent )
@@ -116,11 +116,11 @@ KuickFile::DownloadStatus KuickFile::waitForDownload( TQWidget *parent )
     dialog->exec();
     bool canceled = dialog->wasCancelled();
     delete dialog;
-    m_progress = 0L;
+    m_progress = nullptr;
 
 	if ( canceled && m_job ) {
 		m_job->kill();
-		m_job = 0L;
+		m_job = nullptr;
 		m_currentProgress = 0;
 	}
     // ### when aborted, remove KuickImage from FileCache?
@@ -141,7 +141,7 @@ void KuickFile::slotResult( TDEIO::Job *job )
         return;
     }
 
-    m_job = 0L;
+    m_job = nullptr;
 
     if ( job->error() != 0 ) {
     	m_currentProgress = 0;
diff --git a/kuickshow/src/kuickfile.h b/kuickshow/src/kuickfile.h
index 9f8f0129..379ee8f4 100644
--- a/kuickshow/src/kuickfile.h
+++ b/kuickshow/src/kuickfile.h
@@ -51,7 +51,7 @@ public:
     /**
      * @return true if download is in progress
      */
-    bool isDownloading() const { return m_job != 0L; }
+    bool isDownloading() const { return m_job != nullptr; }
 
     /**
      * @return true if a local file is available, that is,
diff --git a/kuickshow/src/kuickimage.cpp b/kuickshow/src/kuickimage.cpp
index d1ee8df5..59b52ce2 100644
--- a/kuickshow/src/kuickimage.cpp
+++ b/kuickshow/src/kuickimage.cpp
@@ -3,7 +3,7 @@
 #include <tqfileinfo.h>
 
 KuickImage::KuickImage( const KuickFile *file, Imlib_Image im, Imlib_Context context )
-    : TQObject( 0L, 0L )
+    : TQObject( nullptr, nullptr )
 {
     myFile   = file;
     myPixmap = 0L;
@@ -82,7 +82,7 @@ void KuickImage::renderPixmap()
     emit startRendering();
 
     imlib_context_set_image(myIm.im);
-    imlib_render_pixmaps_for_whole_image_at_size(&myPixmap, 0L, myWidth, myHeight);
+    imlib_render_pixmaps_for_whole_image_at_size(&myPixmap, nullptr, myWidth, myHeight);
 
     emit stoppedRendering();
     imlib_context_pop();
diff --git a/kuickshow/src/kuickshow.cpp b/kuickshow/src/kuickshow.cpp
index 3dc8681f..758d4a5d 100644
--- a/kuickshow/src/kuickshow.cpp
+++ b/kuickshow/src/kuickshow.cpp
@@ -93,17 +93,17 @@ static const int META_ITEM = 1;
 TQValueList<ImageWindow*> KuickShow::s_viewers;
 
 KuickShow::KuickShow( const char *name )
-    : TDEMainWindow( 0L, name ),
+    : TDEMainWindow( nullptr, name ),
       m_slideshowCycle( 1 ),
-      fileWidget( 0L ),
-      dialog( 0L ),
-      m_viewer( 0L ),
-      oneWindowAction( 0L ),
-      m_accel( 0L ),
-      m_delayedRepeatItem( 0L ),
+      fileWidget( nullptr ),
+      dialog( nullptr ),
+      m_viewer( nullptr ),
+      oneWindowAction( nullptr ),
+      m_accel( nullptr ),
+      m_delayedRepeatItem( nullptr ),
       m_slideShowStopped(false)
 {
-    aboutWidget = 0L;
+    aboutWidget = nullptr;
     kdata = new KuickData;
     kdata->load();
 
@@ -448,7 +448,7 @@ void KuickShow::viewerDeleted()
     ImageWindow *viewer = (ImageWindow*) sender();
     s_viewers.remove( viewer );
     if ( viewer == m_viewer )
-        m_viewer = 0L;
+        m_viewer = nullptr;
 
     if ( !haveBrowser() && s_viewers.isEmpty() ) {
         saveSettings();
@@ -532,7 +532,7 @@ bool KuickShow::showImage( const KFileItem *fi,
     if ( FileWidget::isImage( fi ) ) {
 
         if ( newWindow ) {
-            m_viewer = new ImageWindow( kdata->idata, 0L, "image window" );
+            m_viewer = new ImageWindow( kdata->idata, nullptr, "image window" );
             m_viewer->setFullscreen( fullscreen );
             s_viewers.append( m_viewer );
 
@@ -588,7 +588,7 @@ bool KuickShow::showImage( const KFileItem *fi,
             }
 
             if ( kdata->preloadImage && fileWidget ) {
-                KFileItem *item = 0L;                 // don't move cursor
+                KFileItem *item = nullptr;                 // don't move cursor
                 item = fileWidget->getItem( FileWidget::Next, true );
                 if ( item )
                     safeViewer->cacheImage( item->url() );
@@ -615,7 +615,7 @@ void KuickShow::slotTrashCurrentImage()
 void KuickShow::slotDeleteCurrentImage(ImageWindow *viewer)
 {
     if (!fileWidget) {
-        delayAction(new DelayedRepeatEvent(viewer, DelayedRepeatEvent::DeleteCurrentFile, 0L));
+        delayAction(new DelayedRepeatEvent(viewer, DelayedRepeatEvent::DeleteCurrentFile, nullptr));
         return;
     }
     performDeleteCurrentImage(viewer);
@@ -624,7 +624,7 @@ void KuickShow::slotDeleteCurrentImage(ImageWindow *viewer)
 void KuickShow::slotTrashCurrentImage(ImageWindow *viewer)
 {
     if (!fileWidget) {
-        delayAction(new DelayedRepeatEvent(viewer, DelayedRepeatEvent::TrashCurrentFile, 0L));
+        delayAction(new DelayedRepeatEvent(viewer, DelayedRepeatEvent::TrashCurrentFile, nullptr));
         return;
     }
     performTrashCurrentImage(viewer);
@@ -632,7 +632,7 @@ void KuickShow::slotTrashCurrentImage(ImageWindow *viewer)
 
 void KuickShow::performDeleteCurrentImage(TQWidget *parent)
 {
-    assert(fileWidget != 0L);
+    assert(fileWidget != nullptr);
 
     KFileItemList list;
     KFileItem *item = fileWidget->getCurrentItem(false);
@@ -655,7 +655,7 @@ void KuickShow::performDeleteCurrentImage(TQWidget *parent)
 
 void KuickShow::performTrashCurrentImage(TQWidget *parent)
 {
-    assert(fileWidget != 0L);
+    assert(fileWidget != nullptr);
 
     KFileItemList list;
     KFileItem *item = fileWidget->getCurrentItem(false);
@@ -778,7 +778,7 @@ void KuickShow::slotPrint()
     KFileItemListIterator it( *items );
 
     // don't show the image, just print
-    ImageWindow *iw = new ImageWindow( 0, this, "printing image" );
+    ImageWindow *iw = new ImageWindow( nullptr, this, "printing image" );
     KFileItem *item;
     while ( (item = it.current()) ) {
         if (FileWidget::isImage( item ) && iw->loadImage( item->url() ))
@@ -826,8 +826,8 @@ void KuickShow::show()
 
 void KuickShow::slotAdvanceImage( ImageWindow *view, int steps )
 {
-    KFileItem *item      = 0L; // to be shown
-    KFileItem *item_next = 0L; // to be cached
+    KFileItem *item      = nullptr; // to be shown
+    KFileItem *item_next = nullptr; // to be cached
 
     if ( steps == 0 )
         return;
@@ -877,7 +877,7 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e )
 
     bool ret = false;
     int eventType = e->type();
-    TQKeyEvent *k = 0L;
+    TQKeyEvent *k = nullptr;
     if ( eventType == TQEvent::KeyPress )
         k = static_cast<TQKeyEvent*>( e );
 
@@ -907,8 +907,8 @@ bool KuickShow::eventFilter( TQObject *o, TQEvent *e )
 
         m_viewer = window;
         TQString img;
-        KFileItem *item = 0L;      // the image to be shown
-        KFileItem *item_next = 0L; // the image to be cached
+        KFileItem *item = nullptr;      // the image to be shown
+        KFileItem *item_next = nullptr; // the image to be cached
 
         if ( k ) { // keypress
             ret = true;
@@ -1075,7 +1075,7 @@ void KuickShow::configuration()
         initGUI( KURL::fromPathOrURL( TQDir::homeDirPath() ) );
     }
 
-    dialog = new KuickConfigDialog( fileWidget->actionCollection(), 0L,
+    dialog = new KuickConfigDialog( fileWidget->actionCollection(), nullptr,
                                     "dialog", false );
     dialog->resize( 540, 510 );
     dialog->setIcon( tdeApp->miniIcon() );
@@ -1120,7 +1120,7 @@ void KuickShow::slotConfigClosed()
 void KuickShow::about()
 {
     if ( !aboutWidget )
-        aboutWidget = new AboutWidget( 0L, "about" );
+        aboutWidget = new AboutWidget( nullptr, "about" );
 
     aboutWidget->adjustSize();
 
@@ -1232,7 +1232,7 @@ void KuickShow::delayedRepeatEvent( ImageWindow *w, TQKeyEvent *e )
 void KuickShow::abortDelayedEvent()
 {
     delete m_delayedRepeatItem;
-    m_delayedRepeatItem = 0L;
+    m_delayedRepeatItem = nullptr;
 }
 
 void KuickShow::slotReplayEvent()
@@ -1241,7 +1241,7 @@ void KuickShow::slotReplayEvent()
                 this, TQ_SLOT( slotReplayEvent() ));
 
     DelayedRepeatEvent *e = m_delayedRepeatItem;
-    m_delayedRepeatItem = 0L; // otherwise, eventFilter aborts
+    m_delayedRepeatItem = nullptr; // otherwise, eventFilter aborts
 
     eventFilter( e->viewer, static_cast<TQEvent*>(e->event) );
     delete e;
@@ -1249,7 +1249,7 @@ void KuickShow::slotReplayEvent()
     // ### WORKAROUND for TQIconView bug in TQt <= 3.0.3 at least
     if ( fileWidget && fileWidget->view() ) {
         TQWidget *widget = fileWidget->view()->widget();
-        if ( widget->inherits( "TQIconView" ) || widget->child(0, "TQIconView" ) ){
+        if ( widget->inherits( "TQIconView" ) || widget->child(nullptr, "TQIconView" ) ){
             fileWidget->setSorting( fileWidget->sorting() );
         }
     }
@@ -1263,7 +1263,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" ) || widget->child(0, "TQIconView" ) ){
+        if ( widget->inherits( "TQIconView" ) || widget->child(nullptr, "TQIconView" ) ){
             fileWidget->setSorting( fileWidget->sorting() );
         }
     }
@@ -1324,7 +1324,7 @@ void KuickShow::doReplay()
     }
 
     delete m_delayedRepeatItem;
-    m_delayedRepeatItem = 0L;
+    m_delayedRepeatItem = nullptr;
 }
 
 void KuickShow::toggleBrowser()
@@ -1372,7 +1372,7 @@ void KuickShow::deleteAllViewers()
     }
 
     s_viewers.clear();
-    m_viewer = 0L;
+    m_viewer = nullptr;
 }
 
 TDEActionCollection * KuickShow::actionCollection() const
diff --git a/kuickshow/src/kuickshow.h b/kuickshow/src/kuickshow.h
index 046f93ef..e7173b74 100644
--- a/kuickshow/src/kuickshow.h
+++ b/kuickshow/src/kuickshow.h
@@ -55,7 +55,7 @@ public:
         this->viewer = view;
         this->action = action;
         this->data   = data;
-        this->event  = 0L;
+        this->event  = nullptr;
     }
 
     ~DelayedRepeatEvent() {
@@ -82,7 +82,7 @@ class KuickShow : public TDEMainWindow
   
 
 public:
-    KuickShow( const char *name=0 );
+    KuickShow( const char *name=nullptr );
     ~KuickShow();
 
     virtual void 	show();
diff --git a/kuickshow/src/kurlwidget.h b/kuickshow/src/kurlwidget.h
index 85ebd498..c1fffba9 100644
--- a/kuickshow/src/kurlwidget.h
+++ b/kuickshow/src/kurlwidget.h
@@ -27,7 +27,7 @@ class KURLWidget : public KURLLabel
   
 
 public:
-    KURLWidget( const TQString& text, TQWidget *, const char *name=0 );
+    KURLWidget( const TQString& text, TQWidget *, const char *name=nullptr );
 
 protected slots:
     virtual void run();
diff --git a/kuickshow/src/main.cpp b/kuickshow/src/main.cpp
index 547b249b..e094e635 100644
--- a/kuickshow/src/main.cpp
+++ b/kuickshow/src/main.cpp
@@ -30,9 +30,9 @@
 static TDECmdLineOptions options[] =
 {
     { "lastfolder", I18N_NOOP("Start in the last visited folder, not the "
-			      "current working folder."), 0 },
-    { "d", 0, 0 }, // short option for --lastdir
-    { "+[files]", I18N_NOOP("Optional image filenames/urls to show"), 0 },
+			      "current working folder."), nullptr },
+    { "d", nullptr, nullptr }, // short option for --lastdir
+    { "+[files]", I18N_NOOP("Optional image filenames/urls to show"), nullptr },
     TDECmdLineLastOption
 };
 
@@ -42,12 +42,12 @@ extern "C" TDE_EXPORT int kdemain(int argc, char **argv)
 	  "kuickshow", I18N_NOOP( "KuickShow" ), KUICKSHOWVERSION,
 	  I18N_NOOP("A fast and versatile image viewer" ),
 	  TDEAboutData::License_GPL, "(c) 1998-2006, Carsten Pfeiffer",
-	  0 /*text*/, "http://devel-home.kde.org/~pfeiffer/" );
+	  nullptr /*text*/, "http://devel-home.kde.org/~pfeiffer/" );
 
-    about.addAuthor( "Carsten Pfeiffer", 0, "pfeiffer@kde.org",
+    about.addAuthor( "Carsten Pfeiffer", nullptr, "pfeiffer@kde.org",
 		     "http://devel-home.kde.org/~pfeiffer/" );
-    about.addCredit( "Rober Hamberger", 0, "rh474@bingo-ev.de" );
-    about.addCredit( "Thorsten Scheuermann", 0, "uddn@rz.uni-karlsruhe.de" );
+    about.addCredit( "Rober Hamberger", nullptr, "rh474@bingo-ev.de" );
+    about.addCredit( "Thorsten Scheuermann", nullptr, "uddn@rz.uni-karlsruhe.de" );
 
     TDECmdLineArgs::init( argc, argv, &about );
     TDECmdLineArgs::addCmdLineOptions( options );
diff --git a/kuickshow/src/printing.h b/kuickshow/src/printing.h
index b2f38d5e..1c65894a 100644
--- a/kuickshow/src/printing.h
+++ b/kuickshow/src/printing.h
@@ -36,7 +36,7 @@ class ImageWindow;
 class Printing
 {
 public:
-    static bool printImage( ImageWindow& imageWin, TQWidget *parent = 0L);
+    static bool printImage( ImageWindow& imageWin, TQWidget *parent = nullptr);
     static bool printImageWithTQt( const TQString& filename, KPrinter& printer,
                                   const TQString& originalFileName );
 
@@ -53,7 +53,7 @@ class KuickPrintDialogPage : public KPrintDialogPage
   
 
 public:
-    KuickPrintDialogPage( TQWidget *parent = 0L, const char *name = 0 );
+    KuickPrintDialogPage( TQWidget *parent = nullptr, const char *name = nullptr );
     ~KuickPrintDialogPage();
 
     virtual void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);
-- 
cgit v1.2.3

