diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-22 11:57:05 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-22 11:57:05 +0900 |
| commit | b200dc191e36b3af25c88fe541842c86bd8afc09 (patch) | |
| tree | a5e05e9b3b8b874b399697f9c2050135f0686be5 /kpovmodeler | |
| parent | baed4696defeb4a65e25fa8a9ed194741613df2d (diff) | |
| download | tdegraphics-master.tar.gz tdegraphics-master.zip | |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kpovmodeler')
| -rw-r--r-- | kpovmodeler/pmpovrayrenderwidget.cpp | 12 | ||||
| -rw-r--r-- | kpovmodeler/pmpovraywidget.cpp | 8 |
2 files changed, 0 insertions, 20 deletions
diff --git a/kpovmodeler/pmpovrayrenderwidget.cpp b/kpovmodeler/pmpovrayrenderwidget.cpp index ea3214c5..7665fe51 100644 --- a/kpovmodeler/pmpovrayrenderwidget.cpp +++ b/kpovmodeler/pmpovrayrenderwidget.cpp @@ -113,10 +113,8 @@ bool PMPovrayRenderWidget::render( const TQByteArray& scene, << "+K0.0" << "+KFI1" << "+KFF1" << "+KI0.0" << "+KF0.0" << "+SF1" << "+EF1" << "-KC" << "-D"; -#if ( ( TDE_VERSION_MAJOR == 2 ) && ( TDE_VERSION_MINOR >= 9 ) ) || ( TDE_VERSION_MAJOR == 3 ) if( !documentURL.isEmpty( ) && documentURL.isLocalFile( ) ) m_pProcess->setWorkingDirectory( documentURL.directory( ) ); -#endif m_rcvHeader = true; m_rcvHeaderBytes = 0; @@ -407,25 +405,15 @@ TQSize PMPovrayRenderWidget::sizeHint( ) const void PMPovrayRenderWidget::saveConfig( TDEConfig* cfg ) { cfg->setGroup( "Povray" ); -#if ( ( TDE_VERSION_MAJOR == 3 ) && ( TDE_VERSION_MINOR <= 1 ) ) - cfg->writeEntry( "PovrayCommand", s_povrayCommand ); - cfg->writeEntry( "LibraryPaths", s_libraryPaths ); -#else cfg->writePathEntry( "PovrayCommand", s_povrayCommand ); cfg->writePathEntry( "LibraryPaths", s_libraryPaths ); -#endif } void PMPovrayRenderWidget::restoreConfig( TDEConfig* cfg ) { cfg->setGroup( "Povray" ); -#if ( ( TDE_VERSION_MAJOR == 3 ) && ( TDE_VERSION_MINOR <= 1 ) ) - s_povrayCommand = cfg->readEntry( "PovrayCommand", s_povrayCommand ); - s_libraryPaths = cfg->readListEntry( "LibraryPaths" ); -#else s_povrayCommand = cfg->readPathEntry( "PovrayCommand", s_povrayCommand ); s_libraryPaths = cfg->readPathListEntry( "LibraryPaths" ); -#endif } void PMPovrayRenderWidget::startDrag( ) diff --git a/kpovmodeler/pmpovraywidget.cpp b/kpovmodeler/pmpovraywidget.cpp index 99c81742..97a25bac 100644 --- a/kpovmodeler/pmpovraywidget.cpp +++ b/kpovmodeler/pmpovraywidget.cpp @@ -151,19 +151,11 @@ bool PMPovrayWidget::render( const TQByteArray& scene, const PMRenderMode& m, w += 16; h += 16; -#if ( ( TDE_VERSION_MAJOR == 3 ) && ( TDE_VERSION_MINOR <= 1 ) ) - TQWidget* dw = TQApplication::desktop( ); - if( w > dw->width( ) ) - w = dw->width( ); - if( h > dw->height( ) ) - h = dw->height( ); -#else TQRect dw = TDEGlobalSettings::desktopGeometry(this); if( w > dw.width() ) w = dw.width(); if( h > dw.height() ) h = dw.height(); -#endif resize( w, h ); } |
