From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kview/kimageviewer/canvas.h | 6 +++--- kview/kimageviewer/viewer.cpp | 4 ++-- kview/kimageviewer/viewer.h | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'kview/kimageviewer') diff --git a/kview/kimageviewer/canvas.h b/kview/kimageviewer/canvas.h index 18aae3be..51736844 100644 --- a/kview/kimageviewer/canvas.h +++ b/kview/kimageviewer/canvas.h @@ -29,7 +29,7 @@ class TQPoint; class TQWidget; #include -#include +#include #include namespace KImageViewer { @@ -47,7 +47,7 @@ namespace KImageViewer * your program: * *
-   TQWidget * widget = KParts::ComponentFactory::createInstanceFromQuery( "KImageViewer/Canvas", TQString::null, this );
+   TQWidget * widget = KParts::ComponentFactory::createInstanceFromQuery( "KImageViewer/Canvas", TQString(), this );
    m_canvas = static_cast( widget->qt_cast( "KImageViewer::Canvas" ) );
    if( ! ( widget && m_canvas ) )
    {
@@ -151,7 +151,7 @@ class KDE_EXPORT Canvas
 		/**
 		 * @return the description of the blend effect
 		 */
-		virtual TQString blendEffectDescription( unsigned int ) const { return TQString::null; }
+		virtual TQString blendEffectDescription( unsigned int ) const { return TQString(); }
 
 		/**
 		 * Sets the blending effect used to create a transition between images
diff --git a/kview/kimageviewer/viewer.cpp b/kview/kimageviewer/viewer.cpp
index 1a5890d6..445cb6de 100644
--- a/kview/kimageviewer/viewer.cpp
+++ b/kview/kimageviewer/viewer.cpp
@@ -22,8 +22,8 @@
 
 namespace KImageViewer
 {
-	Viewer::Viewer( TQObject * parent, const char * name )
-		: KParts::ReadWritePart( parent, name )
+	Viewer::Viewer( TQObject * tqparent, const char * name )
+		: KParts::ReadWritePart( tqparent, name )
 	{
 	}
 
diff --git a/kview/kimageviewer/viewer.h b/kview/kimageviewer/viewer.h
index 995be8b9..a656f049 100644
--- a/kview/kimageviewer/viewer.h
+++ b/kview/kimageviewer/viewer.h
@@ -48,8 +48,9 @@ namespace KImageViewer
 class KDE_EXPORT Viewer : public KParts::ReadWritePart
 {
 	Q_OBJECT
+  TQ_OBJECT
 	public:
-		Viewer( TQObject * parent = 0, const char * name = 0 );
+		Viewer( TQObject * tqparent = 0, const char * name = 0 );
 
 		virtual ~Viewer();
 
-- 
cgit v1.2.1