summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmcolorsettings.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:47:59 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:47:59 -0600
commitc2637a0da6d9a1c8626ca39f8451ab3b7cda487a (patch)
treebe38034f085e8be24f14f329f87a611d319e6259 /kpovmodeler/pmcolorsettings.cpp
parent3fd343f2c6b0545bd750b2939c74be3834b13274 (diff)
downloadtdegraphics-c2637a0da6d9a1c8626ca39f8451ab3b7cda487a.tar.gz
tdegraphics-c2637a0da6d9a1c8626ca39f8451ab3b7cda487a.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kpovmodeler/pmcolorsettings.cpp')
-rw-r--r--kpovmodeler/pmcolorsettings.cpp80
1 files changed, 40 insertions, 40 deletions
diff --git a/kpovmodeler/pmcolorsettings.cpp b/kpovmodeler/pmcolorsettings.cpp
index e8518312..d64ced5e 100644
--- a/kpovmodeler/pmcolorsettings.cpp
+++ b/kpovmodeler/pmcolorsettings.cpp
@@ -20,7 +20,7 @@
#include "pmrendermanager.h"
#include "pmdefaults.h"
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
#include <kcolorbutton.h>
#include <klocale.h>
@@ -28,60 +28,60 @@
PMColorSettings::PMColorSettings( TQWidget* parent, const char* name )
: PMSettingsDialogPage( parent, name )
{
- TQHBoxLayout* htqlayout;
- TQVBoxLayout* vtqlayout;
+ TQHBoxLayout* hlayout;
+ TQVBoxLayout* vlayout;
TQGridLayout* grid;
- vtqlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) );
- grid = new TQGridLayout( vtqlayout, 6, 3 );
+ vlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) );
+ grid = new TQGridLayout( vlayout, 6, 3 );
grid->addWidget( new TQLabel( i18n( "Background:" ), this ), 0, 0 );
- htqlayout = new TQHBoxLayout( );
- grid->addLayout( htqlayout, 0, 2 );
+ hlayout = new TQHBoxLayout( );
+ grid->addLayout( hlayout, 0, 2 );
m_pBackgroundColor = new KColorButton( this );
- htqlayout->addWidget( m_pBackgroundColor );
- htqlayout->addStretch( 1 );
+ hlayout->addWidget( m_pBackgroundColor );
+ hlayout->addStretch( 1 );
grid->addWidget( new TQLabel( i18n( "Wire frame:" ), this ), 1, 0 );
- htqlayout = new TQHBoxLayout( );
- grid->addLayout( htqlayout, 1, 2 );
+ hlayout = new TQHBoxLayout( );
+ grid->addLayout( hlayout, 1, 2 );
m_pGraphicalObjectsColor[0] = new KColorButton( this );
- htqlayout->addWidget( m_pGraphicalObjectsColor[0] );
- htqlayout->addWidget( new TQLabel( i18n( "Selected:" ), this ) );
+ hlayout->addWidget( m_pGraphicalObjectsColor[0] );
+ hlayout->addWidget( new TQLabel( i18n( "Selected:" ), this ) );
m_pGraphicalObjectsColor[1] = new KColorButton( this );
- htqlayout->addWidget( m_pGraphicalObjectsColor[1] );
- htqlayout->addStretch( 1 );
+ hlayout->addWidget( m_pGraphicalObjectsColor[1] );
+ hlayout->addStretch( 1 );
grid->addWidget( new TQLabel( i18n( "Control points:" ), this ), 2, 0 );
- htqlayout = new TQHBoxLayout( );
- grid->addLayout( htqlayout, 2, 2 );
+ hlayout = new TQHBoxLayout( );
+ grid->addLayout( hlayout, 2, 2 );
m_pControlPointsColor[0] = new KColorButton( this );
- htqlayout->addWidget( m_pControlPointsColor[0] );
- htqlayout->addWidget( new TQLabel( i18n( "Selected:" ), this ) );
+ hlayout->addWidget( m_pControlPointsColor[0] );
+ hlayout->addWidget( new TQLabel( i18n( "Selected:" ), this ) );
m_pControlPointsColor[1] = new KColorButton( this );
- htqlayout->addWidget( m_pControlPointsColor[1] );
- htqlayout->addStretch( 1 );
+ hlayout->addWidget( m_pControlPointsColor[1] );
+ hlayout->addStretch( 1 );
grid->addWidget( new TQLabel( i18n( "Axes:" ), this ), 3, 0 );
- htqlayout = new TQHBoxLayout( );
- grid->addLayout( htqlayout, 3, 2 );
+ hlayout = new TQHBoxLayout( );
+ grid->addLayout( hlayout, 3, 2 );
grid->addWidget( new TQLabel( "x", this ), 3, 1 );
m_pAxesColor[0] = new KColorButton( this );
- htqlayout->addWidget( m_pAxesColor[0] );
- htqlayout->addWidget( new TQLabel( "y", this ) );
+ hlayout->addWidget( m_pAxesColor[0] );
+ hlayout->addWidget( new TQLabel( "y", this ) );
m_pAxesColor[1] = new KColorButton( this );
- htqlayout->addWidget( m_pAxesColor[1] );
- htqlayout->addWidget( new TQLabel( "z", this ) );
+ hlayout->addWidget( m_pAxesColor[1] );
+ hlayout->addWidget( new TQLabel( "z", this ) );
m_pAxesColor[2] = new KColorButton( this );
- htqlayout->addWidget( m_pAxesColor[2] );
- htqlayout->addStretch( 1 );
+ hlayout->addWidget( m_pAxesColor[2] );
+ hlayout->addStretch( 1 );
grid->addWidget( new TQLabel( i18n( "Field of view:" ), this ), 4, 0 );
- htqlayout = new TQHBoxLayout( );
- grid->addLayout( htqlayout, 4, 2 );
+ hlayout = new TQHBoxLayout( );
+ grid->addLayout( hlayout, 4, 2 );
m_pFieldOfViewColor = new KColorButton( this );
- htqlayout->addWidget( m_pFieldOfViewColor );
- htqlayout->addStretch( 1 );
+ hlayout->addWidget( m_pFieldOfViewColor );
+ hlayout->addStretch( 1 );
}
void PMColorSettings::displaySettings( )
@@ -118,21 +118,21 @@ bool PMColorSettings::validateData( )
void PMColorSettings::applySettings( )
{
- bool tqrepaint = false;
+ bool repaint = false;
int i;
PMRenderManager* rm = PMRenderManager::theManager( );
if( rm->backgroundColor( ) != m_pBackgroundColor->color( ) )
{
rm->setBackgroundColor( m_pBackgroundColor->color( ) );
- tqrepaint = true;
+ repaint = true;
}
for( i = 0; i < 2; i++ )
{
if( rm->graphicalObjectColor( i ) != m_pGraphicalObjectsColor[i]->color( ) )
{
rm->setGraphicalObjectColor( i, m_pGraphicalObjectsColor[i]->color( ) );
- tqrepaint = true;
+ repaint = 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( ) );
- tqrepaint = true;
+ repaint = true;
}
}
for( i = 0; i < 3; i++ )
@@ -148,15 +148,15 @@ void PMColorSettings::applySettings( )
if( rm->axesColor( i ) != m_pAxesColor[i]->color( ) )
{
rm->setAxesColor( i, m_pAxesColor[i]->color( ) );
- tqrepaint = true;
+ repaint = true;
}
}
if( rm->fieldOfViewColor( ) != m_pFieldOfViewColor->color( ) )
{
rm->setFieldOfViewColor( m_pFieldOfViewColor->color( ) );
- tqrepaint = true;
+ repaint = true;
}
- if( tqrepaint )
+ if( repaint )
emit repaintViews( );
}