summaryrefslogtreecommitdiffstats
path: root/kview/kimageviewer
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kview/kimageviewer
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
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
Diffstat (limited to 'kview/kimageviewer')
-rw-r--r--kview/kimageviewer/canvas.h6
-rw-r--r--kview/kimageviewer/viewer.cpp4
-rw-r--r--kview/kimageviewer/viewer.h3
3 files changed, 7 insertions, 6 deletions
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 <tqstring.h>
-#include <qobjectdefs.h>
+#include <tqobjectdefs.h>
#include <kdemacros.h>
namespace KImageViewer
{
@@ -47,7 +47,7 @@ namespace KImageViewer
* your program:
*
* <pre>
- TQWidget * widget = KParts::ComponentFactory::createInstanceFromQuery<TQWidget>( "KImageViewer/Canvas", TQString::null, this );
+ TQWidget * widget = KParts::ComponentFactory::createInstanceFromQuery<TQWidget>( "KImageViewer/Canvas", TQString(), this );
m_canvas = static_cast<KImageViewer::Canvas *>( 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();