summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmcolorsettings.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/pmcolorsettings.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/pmcolorsettings.cpp')
-rw-r--r--kpovmodeler/pmcolorsettings.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/kpovmodeler/pmcolorsettings.cpp b/kpovmodeler/pmcolorsettings.cpp
index c0dafa37..2b444407 100644
--- a/kpovmodeler/pmcolorsettings.cpp
+++ b/kpovmodeler/pmcolorsettings.cpp
@@ -25,63 +25,63 @@
#include <kcolorbutton.h>
#include <klocale.h>
-PMColorSettings::PMColorSettings( TQWidget* parent, const char* name )
- : PMSettingsDialogPage( parent, name )
+PMColorSettings::PMColorSettings( TQWidget* tqparent, const char* name )
+ : PMSettingsDialogPage( tqparent, name )
{
- TQHBoxLayout* hlayout;
- TQVBoxLayout* vlayout;
+ TQHBoxLayout* htqlayout;
+ TQVBoxLayout* vtqlayout;
TQGridLayout* grid;
- vlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) );
- grid = new TQGridLayout( vlayout, 6, 3 );
+ vtqlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) );
+ grid = new TQGridLayout( vtqlayout, 6, 3 );
grid->addWidget( new TQLabel( i18n( "Background:" ), this ), 0, 0 );
- hlayout = new TQHBoxLayout( );
- grid->addLayout( hlayout, 0, 2 );
+ htqlayout = new TQHBoxLayout( );
+ grid->addLayout( htqlayout, 0, 2 );
m_pBackgroundColor = new KColorButton( this );
- hlayout->addWidget( m_pBackgroundColor );
- hlayout->addStretch( 1 );
+ htqlayout->addWidget( m_pBackgroundColor );
+ htqlayout->addStretch( 1 );
grid->addWidget( new TQLabel( i18n( "Wire frame:" ), this ), 1, 0 );
- hlayout = new TQHBoxLayout( );
- grid->addLayout( hlayout, 1, 2 );
+ htqlayout = new TQHBoxLayout( );
+ grid->addLayout( htqlayout, 1, 2 );
m_pGraphicalObjectsColor[0] = new KColorButton( this );
- hlayout->addWidget( m_pGraphicalObjectsColor[0] );
- hlayout->addWidget( new TQLabel( i18n( "Selected:" ), this ) );
+ htqlayout->addWidget( m_pGraphicalObjectsColor[0] );
+ htqlayout->addWidget( new TQLabel( i18n( "Selected:" ), this ) );
m_pGraphicalObjectsColor[1] = new KColorButton( this );
- hlayout->addWidget( m_pGraphicalObjectsColor[1] );
- hlayout->addStretch( 1 );
+ htqlayout->addWidget( m_pGraphicalObjectsColor[1] );
+ htqlayout->addStretch( 1 );
grid->addWidget( new TQLabel( i18n( "Control points:" ), this ), 2, 0 );
- hlayout = new TQHBoxLayout( );
- grid->addLayout( hlayout, 2, 2 );
+ htqlayout = new TQHBoxLayout( );
+ grid->addLayout( htqlayout, 2, 2 );
m_pControlPointsColor[0] = new KColorButton( this );
- hlayout->addWidget( m_pControlPointsColor[0] );
- hlayout->addWidget( new TQLabel( i18n( "Selected:" ), this ) );
+ htqlayout->addWidget( m_pControlPointsColor[0] );
+ htqlayout->addWidget( new TQLabel( i18n( "Selected:" ), this ) );
m_pControlPointsColor[1] = new KColorButton( this );
- hlayout->addWidget( m_pControlPointsColor[1] );
- hlayout->addStretch( 1 );
+ htqlayout->addWidget( m_pControlPointsColor[1] );
+ htqlayout->addStretch( 1 );
grid->addWidget( new TQLabel( i18n( "Axes:" ), this ), 3, 0 );
- hlayout = new TQHBoxLayout( );
- grid->addLayout( hlayout, 3, 2 );
+ htqlayout = new TQHBoxLayout( );
+ grid->addLayout( htqlayout, 3, 2 );
grid->addWidget( new TQLabel( "x", this ), 3, 1 );
m_pAxesColor[0] = new KColorButton( this );
- hlayout->addWidget( m_pAxesColor[0] );
- hlayout->addWidget( new TQLabel( "y", this ) );
+ htqlayout->addWidget( m_pAxesColor[0] );
+ htqlayout->addWidget( new TQLabel( "y", this ) );
m_pAxesColor[1] = new KColorButton( this );
- hlayout->addWidget( m_pAxesColor[1] );
- hlayout->addWidget( new TQLabel( "z", this ) );
+ htqlayout->addWidget( m_pAxesColor[1] );
+ htqlayout->addWidget( new TQLabel( "z", this ) );
m_pAxesColor[2] = new KColorButton( this );
- hlayout->addWidget( m_pAxesColor[2] );
- hlayout->addStretch( 1 );
+ htqlayout->addWidget( m_pAxesColor[2] );
+ htqlayout->addStretch( 1 );
grid->addWidget( new TQLabel( i18n( "Field of view:" ), this ), 4, 0 );
- hlayout = new TQHBoxLayout( );
- grid->addLayout( hlayout, 4, 2 );
+ htqlayout = new TQHBoxLayout( );
+ grid->addLayout( htqlayout, 4, 2 );
m_pFieldOfViewColor = new KColorButton( this );
- hlayout->addWidget( m_pFieldOfViewColor );
- hlayout->addStretch( 1 );
+ htqlayout->addWidget( m_pFieldOfViewColor );
+ htqlayout->addStretch( 1 );
}
void PMColorSettings::displaySettings( )
@@ -118,21 +118,21 @@ bool PMColorSettings::validateData( )
void PMColorSettings::applySettings( )
{
- bool repaint = false;
+ bool tqrepaint = false;
int i;
PMRenderManager* rm = PMRenderManager::theManager( );
if( rm->backgroundColor( ) != m_pBackgroundColor->color( ) )
{
rm->setBackgroundColor( m_pBackgroundColor->color( ) );
- repaint = true;
+ tqrepaint = true;
}
for( i = 0; i < 2; i++ )
{
if( rm->graphicalObjectColor( i ) != m_pGraphicalObjectsColor[i]->color( ) )
{
rm->setGraphicalObjectColor( i, m_pGraphicalObjectsColor[i]->color( ) );
- repaint = true;
+ tqrepaint = true;
}
}
for( i = 0; i < 2; i++ )
@@ -140,7 +140,7 @@ void PMColorSettings::applySettings( )
if( rm->controlPointColor( i ) != m_pControlPointsColor[i]->color( ) )
{
rm->setControlPointColor( i, m_pControlPointsColor[i]->color( ) );
- repaint = true;
+ tqrepaint = true;
}
}
for( i = 0; i < 3; i++ )
@@ -148,16 +148,16 @@ void PMColorSettings::applySettings( )
if( rm->axesColor( i ) != m_pAxesColor[i]->color( ) )
{
rm->setAxesColor( i, m_pAxesColor[i]->color( ) );
- repaint = true;
+ tqrepaint = true;
}
}
if( rm->fieldOfViewColor( ) != m_pFieldOfViewColor->color( ) )
{
rm->setFieldOfViewColor( m_pFieldOfViewColor->color( ) );
- repaint = true;
+ tqrepaint = true;
}
- if( repaint )
- emit repaintViews( );
+ if( tqrepaint )
+ emit tqrepaintViews( );
}
#include "pmcolorsettings.moc"