summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmpovrayrenderwidget.cpp
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 /kpovmodeler/pmpovrayrenderwidget.cpp
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 'kpovmodeler/pmpovrayrenderwidget.cpp')
-rw-r--r--kpovmodeler/pmpovrayrenderwidget.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kpovmodeler/pmpovrayrenderwidget.cpp b/kpovmodeler/pmpovrayrenderwidget.cpp
index 7581cbea..fb3cbf67 100644
--- a/kpovmodeler/pmpovrayrenderwidget.cpp
+++ b/kpovmodeler/pmpovrayrenderwidget.cpp
@@ -40,8 +40,8 @@
TQString PMPovrayRenderWidget::s_povrayCommand = c_defaultPovrayCommand;
TQStringList PMPovrayRenderWidget::s_libraryPaths;
-PMPovrayRenderWidget::PMPovrayRenderWidget( TQWidget* parent, const char* name )
- : PMDragWidget( parent, name )
+PMPovrayRenderWidget::PMPovrayRenderWidget( TQWidget* tqparent, const char* name )
+ : PMDragWidget( tqparent, name )
{
m_pProcess = 0;
m_bSuspended = false;
@@ -74,7 +74,7 @@ bool PMPovrayRenderWidget::render( const TQByteArray& scene,
}
// output to tmp file
- m_pTempFile = new KTempFile( TQString::null, ".pov" );
+ m_pTempFile = new KTempFile( TQString(), ".pov" );
TQDataStream* dstr = m_pTempFile->dataStream( );
if( ( m_pTempFile->status( ) != 0 ) || !dstr )
@@ -132,9 +132,9 @@ bool PMPovrayRenderWidget::render( const TQByteArray& scene,
m_image.create( width, height, 32 );
m_image.setAlphaBuffer( m_renderMode.alpha( ) );
- m_image.fill( qRgb( 0, 0, 0 ) );
+ m_image.fill( tqRgb( 0, 0, 0 ) );
m_bPixmapUpToDate = false;
- repaint( );
+ tqrepaint( );
if( !m_pProcess->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -236,11 +236,11 @@ void PMPovrayRenderWidget::slotPovrayImage( KProcess*, char* buffer, int buflen
if( m_bytespp == 4 )
setPixel( m_column, m_line,
- qRgba( m_restBytes[2], m_restBytes[1],
+ tqRgba( m_restBytes[2], m_restBytes[1],
m_restBytes[0], m_restBytes[3] ) );
else
setPixel( m_column, m_line,
- qRgb( m_restBytes[2], m_restBytes[1], m_restBytes[0] ) );
+ tqRgb( m_restBytes[2], m_restBytes[1], m_restBytes[0] ) );
m_column++;
m_rcvPixels++;
@@ -259,11 +259,11 @@ void PMPovrayRenderWidget::slotPovrayImage( KProcess*, char* buffer, int buflen
{
if( m_bytespp == 4 )
setPixel( m_column, m_line,
- qRgba( buffer[index+2], buffer[index+1],
+ tqRgba( buffer[index+2], buffer[index+1],
buffer[index], buffer[index+3] ) );
else
setPixel( m_column, m_line,
- qRgb( buffer[index+2], buffer[index+1],
+ tqRgb( buffer[index+2], buffer[index+1],
buffer[index] ) );
index += m_bytespp;
@@ -393,7 +393,7 @@ void PMPovrayRenderWidget::cleanup( )
m_pTempFile = 0;
}
-TQSize PMPovrayRenderWidget::sizeHint( ) const
+TQSize PMPovrayRenderWidget::tqsizeHint( ) const
{
TQSize s;
if( m_image.isNull( ) )
@@ -401,7 +401,7 @@ TQSize PMPovrayRenderWidget::sizeHint( ) const
else
s = m_image.size( );
- return s.expandedTo( minimumSize( ) );
+ return s.expandedTo( tqminimumSize( ) );
}
void PMPovrayRenderWidget::saveConfig( KConfig* cfg )