summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmpovraywidget.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/pmpovraywidget.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/pmpovraywidget.cpp')
-rw-r--r--kpovmodeler/pmpovraywidget.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kpovmodeler/pmpovraywidget.cpp b/kpovmodeler/pmpovraywidget.cpp
index cd1232e4..6e462edd 100644
--- a/kpovmodeler/pmpovraywidget.cpp
+++ b/kpovmodeler/pmpovraywidget.cpp
@@ -40,8 +40,8 @@
const int timerIntervall = 1000;
bool PMPovrayWidget::s_imageFormatsRegistered = false;
-PMPovrayWidget::PMPovrayWidget( TQWidget* parent, const char* name )
- : KDialog( parent, name )
+PMPovrayWidget::PMPovrayWidget( TQWidget* tqparent, const char* name )
+ : KDialog( tqparent, name )
{
TQVBoxLayout* topLayout = new TQVBoxLayout( this, KDialog::marginHint( ), KDialog::spacingHint( ) );
topLayout->addStretch( );
@@ -140,13 +140,13 @@ bool PMPovrayWidget::render( const TQByteArray& scene, const PMRenderMode& m,
int w, h;
w = maxSize.width( ) + KDialog::spacingHint( ) * 2;
- h = maxSize.height( ) + m_pSaveButton->sizeHint( ).height( ) * 2
+ h = maxSize.height( ) + m_pSaveButton->tqsizeHint( ).height( ) * 2
+ KDialog::spacingHint( ) * 6;
- if( m_pProgressLabel->sizeHint( ).height( )
- > m_pProgressBar->sizeHint( ).height( ) )
- h += m_pProgressLabel->sizeHint( ).height( );
+ if( m_pProgressLabel->tqsizeHint( ).height( )
+ > m_pProgressBar->tqsizeHint( ).height( ) )
+ h += m_pProgressLabel->tqsizeHint( ).height( );
else
- h += m_pProgressBar->sizeHint( ).height( );
+ h += m_pProgressBar->tqsizeHint( ).height( );
w += 16;
h += 16;
@@ -239,7 +239,7 @@ void PMPovrayWidget::slotSave( )
s_imageFormatsRegistered = true;
}
- KURL url = KFileDialog::getSaveURL( TQString::null, KImageIO::pattern( KImageIO::Writing ) );
+ KURL url = KFileDialog::getSaveURL( TQString(), KImageIO::pattern( KImageIO::Writing ) );
if( url.isEmpty( ) )
return;
if( !PMShell::overwriteURL( url ) )
@@ -319,11 +319,11 @@ void PMPovrayWidget::slotPovrayOutput( )
m_pPovrayOutputWidget->show( );
}
-void PMPovrayWidget::slotRenderingFinished( int returnStatus )
+void PMPovrayWidget::slotRenderingFinished( int returntqStatus )
{
- kdDebug( PMArea ) << "Povray exited with status " << returnStatus << endl;
+ kdDebug( PMArea ) << "Povray exited with status " << returntqStatus << endl;
m_bRunning = false;
- if( returnStatus == 0 )
+ if( returntqStatus == 0 )
m_pSaveButton->setEnabled( true );
m_pStopButton->setEnabled( false );
m_pSuspendButton->setEnabled( false );
@@ -331,13 +331,13 @@ void PMPovrayWidget::slotRenderingFinished( int returnStatus )
m_pProgressLabel->setText( i18n( "finished" ) );
m_pProgressTimer->stop( );
- if( ( returnStatus != 0 ) && !m_stopped )
+ if( ( returntqStatus != 0 ) && !m_stopped )
{
KMessageBox::error( this, i18n( "Povray exited abnormally.\n"
"See the povray output for details." )
- .arg( returnStatus ) );
+ .tqarg( returntqStatus ) );
}
- else if( m_pRenderWidget->povrayOutput( ).contains( "ERROR" ) )
+ else if( m_pRenderWidget->povrayOutput( ).tqcontains( "ERROR" ) )
{
KMessageBox::error( this, i18n( "There were errors while rendering.\n"
"See the povray output for details." ) );
@@ -405,7 +405,7 @@ void PMPovrayWidget::showSpeed( double pps )
else
num.setNum( pps, 'g', 3 );
- m_pProgressLabel->setText( i18n( "running, %1 pixels/second" ).arg( num ) );
+ m_pProgressLabel->setText( i18n( "running, %1 pixels/second" ).tqarg( num ) );
}
#include "pmpovraywidget.moc"