summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmgridsettings.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:47:59 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:47:59 -0600
commitc2637a0da6d9a1c8626ca39f8451ab3b7cda487a (patch)
treebe38034f085e8be24f14f329f87a611d319e6259 /kpovmodeler/pmgridsettings.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/pmgridsettings.cpp')
-rw-r--r--kpovmodeler/pmgridsettings.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kpovmodeler/pmgridsettings.cpp b/kpovmodeler/pmgridsettings.cpp
index 69319187..604f0cb6 100644
--- a/kpovmodeler/pmgridsettings.cpp
+++ b/kpovmodeler/pmgridsettings.cpp
@@ -22,7 +22,7 @@
#include "pmcontrolpoint.h"
#include "pmdefaults.h"
-#include <tqlayout.h>
+#include <layout.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
#include <kcolorbutton.h>
@@ -31,38 +31,38 @@
PMGridSettings::PMGridSettings( TQWidget* parent, const char* name )
: PMSettingsDialogPage( parent, name )
{
- TQHBoxLayout* htqlayout;
- TQVBoxLayout* vtqlayout;
+ TQHBoxLayout* hlayout;
+ TQVBoxLayout* vlayout;
TQVBoxLayout* gvl;
TQGridLayout* grid;
TQGroupBox* gb;
- vtqlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) );
+ vlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) );
gb = new TQGroupBox( i18n( "Displayed Grid" ), this );
- vtqlayout->addWidget( gb );
+ vlayout->addWidget( gb );
gvl = new TQVBoxLayout( gb, KDialog::marginHint( ), KDialog::spacingHint( ) );
gvl->addSpacing( 10 );
- htqlayout = new TQHBoxLayout( gvl );
- htqlayout->addWidget( new TQLabel( i18n( "Color:" ), gb ) );
+ hlayout = new TQHBoxLayout( gvl );
+ hlayout->addWidget( new TQLabel( i18n( "Color:" ), gb ) );
m_pGridColor = new KColorButton( gb );
- htqlayout->addWidget( m_pGridColor );
- htqlayout->addStretch( 1 );
+ hlayout->addWidget( m_pGridColor );
+ hlayout->addStretch( 1 );
- htqlayout = new TQHBoxLayout( gvl );
- htqlayout->addWidget( new TQLabel( i18n( "Distance:" ), gb ) );
+ hlayout = new TQHBoxLayout( gvl );
+ hlayout->addWidget( new TQLabel( i18n( "Distance:" ), gb ) );
m_pGridDistance = new PMIntEdit( gb );
m_pGridDistance->setValidation( true, 20, false, 0 );
- htqlayout->addWidget( m_pGridDistance );
- htqlayout->addStretch( 1 );
+ hlayout->addWidget( m_pGridDistance );
+ hlayout->addStretch( 1 );
gb = new TQGroupBox( i18n( "Control Point Grid" ), this );
- vtqlayout->addWidget( gb );
+ vlayout->addWidget( gb );
gvl = new TQVBoxLayout( gb, KDialog::marginHint( ), KDialog::spacingHint( ) );
gvl->addSpacing( 10 );
- htqlayout = new TQHBoxLayout( gvl );
- grid = new TQGridLayout( htqlayout, 3, 2 );
+ hlayout = new TQHBoxLayout( gvl );
+ grid = new TQGridLayout( hlayout, 3, 2 );
grid->addWidget( new TQLabel( i18n( "2D/3D movement:" ), gb ), 0, 0 );
m_pMoveGrid = new PMFloatEdit( gb );
m_pMoveGrid->setValidation( true, 0.001, true, 100 );
@@ -78,9 +78,9 @@ PMGridSettings::PMGridSettings( TQWidget* parent, const char* name )
m_pRotateGrid->setValidation( true, 0.001, true, 180 );
grid->addWidget( m_pRotateGrid, 2, 1 );
- htqlayout->addStretch( 1 );
+ hlayout->addStretch( 1 );
- vtqlayout->addStretch( 1 );
+ vlayout->addStretch( 1 );
}
void PMGridSettings::displaySettings( )
@@ -133,22 +133,22 @@ bool PMGridSettings::validateData( )
void PMGridSettings::applySettings( )
{
- bool tqrepaint = false;
+ bool repaint = false;
PMRenderManager* rm = PMRenderManager::theManager( );
if( rm->gridColor( ) != m_pGridColor->color( ) )
{
rm->setGridColor( m_pGridColor->color( ) );
- tqrepaint = true;
+ repaint = true;
}
if( rm->gridDistance( ) != m_pGridDistance->value( ) )
{
rm->setGridDistance( m_pGridDistance->value( ) );
- tqrepaint = true;
+ repaint = true;
}
PMControlPoint::setMoveGrid( m_pMoveGrid->value( ) );
PMControlPoint::setScaleGrid( m_pScaleGrid->value( ) );
PMControlPoint::setRotateGrid( m_pRotateGrid->value( ) );
- if( tqrepaint )
+ if( repaint )
emit repaintViews( );
}