summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmpovraywidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:00 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:00 -0600
commitec1fddcd0d6663ad273af85357f04abbc5689468 (patch)
tree6cb946ab8b4771868c6eee8d1aa5213d6ec246e2 /kpovmodeler/pmpovraywidget.cpp
parentc2637a0da6d9a1c8626ca39f8451ab3b7cda487a (diff)
downloadtdegraphics-ec1fddcd0d6663ad273af85357f04abbc5689468.tar.gz
tdegraphics-ec1fddcd0d6663ad273af85357f04abbc5689468.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit c2637a0da6d9a1c8626ca39f8451ab3b7cda487a.
Diffstat (limited to 'kpovmodeler/pmpovraywidget.cpp')
-rw-r--r--kpovmodeler/pmpovraywidget.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kpovmodeler/pmpovraywidget.cpp b/kpovmodeler/pmpovraywidget.cpp
index f5035c04..c4ce83cb 100644
--- a/kpovmodeler/pmpovraywidget.cpp
+++ b/kpovmodeler/pmpovraywidget.cpp
@@ -30,7 +30,7 @@
#include <kpushbutton.h>
#include <kstdguiitem.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqprogressbar.h>
#include <tqlabel.h>
#include <tqscrollview.h>
@@ -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;
@@ -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,11 +331,11 @@ 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" ) )
{
@@ -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"