summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmlistpatternedit.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/pmlistpatternedit.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/pmlistpatternedit.cpp')
-rw-r--r--kpovmodeler/pmlistpatternedit.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kpovmodeler/pmlistpatternedit.cpp b/kpovmodeler/pmlistpatternedit.cpp
index 5f2842de..bc897c61 100644
--- a/kpovmodeler/pmlistpatternedit.cpp
+++ b/kpovmodeler/pmlistpatternedit.cpp
@@ -22,7 +22,7 @@
#include "pmvector.h"
#include <tqwidget.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqcombobox.h>
#include <tqlabel.h>
#include "pmlineedits.h"
@@ -41,39 +41,39 @@ void PMListPatternEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- TQVBoxLayout* vlayout = new TQVBoxLayout( topLayout( ) );
+ TQVBoxLayout* vtqlayout = new TQVBoxLayout( topLayout( ) );
/* Field for Pattern List type */
- TQHBoxLayout* layout = new TQHBoxLayout( vlayout );
+ TQHBoxLayout* tqlayout = new TQHBoxLayout( vtqlayout );
TQLabel* label = new TQLabel( i18n( "Type:" ), this );
m_pTypeCombo = new TQComboBox( false, this );
m_pTypeCombo->insertItem( i18n( "Checkers" ) );
m_pTypeCombo->insertItem( i18n( "Brick" ) );
m_pTypeCombo->insertItem( i18n( "Hexagon" ) );
- layout->addWidget( label, 0, AlignTop );
- layout->addWidget( m_pTypeCombo );
- layout->addStretch( 1 );
+ tqlayout->addWidget( label, 0, AlignTop );
+ tqlayout->addWidget( m_pTypeCombo );
+ tqlayout->addStretch( 1 );
/* The depth field */
- layout = new TQHBoxLayout( vlayout );
+ tqlayout = new TQHBoxLayout( vtqlayout );
m_pDepthLabel = new TQLabel( i18n( "Depth:" ), this );
m_pDepth = new PMFloatEdit( this );
- layout->addWidget( m_pDepthLabel );
- layout->addWidget( m_pDepth );
- layout->addStretch( 1 );
+ tqlayout->addWidget( m_pDepthLabel );
+ tqlayout->addWidget( m_pDepth );
+ tqlayout->addStretch( 1 );
/* The brick information */
- TQHBoxLayout* bricklayout = new TQHBoxLayout( vlayout );
+ TQHBoxLayout* bricklayout = new TQHBoxLayout( vtqlayout );
m_pBrickSizeLabel = new TQLabel( i18n( "Brick size:" ), this );
m_pBrickSize = new PMVectorEdit( "x", "y", "z", this );
bricklayout->addWidget( m_pBrickSizeLabel );
bricklayout->addWidget( m_pBrickSize );
- layout = new TQHBoxLayout( vlayout );
+ tqlayout = new TQHBoxLayout( vtqlayout );
m_pMortarLabel = new TQLabel( i18n( "Mortar:" ), this );
m_pMortar = new PMFloatEdit( this );
- layout->addWidget( m_pMortarLabel );
- layout->addWidget( m_pMortar );
- layout->addStretch( 1 );
+ tqlayout->addWidget( m_pMortarLabel );
+ tqlayout->addWidget( m_pMortar );
+ tqlayout->addStretch( 1 );
/* connect all signals to slots/signals */
connect( m_pBrickSize, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
@@ -161,7 +161,7 @@ void PMListPatternEdit::saveContents( )
bool PMListPatternEdit::isDataValid( )
{
- int children = 0;
+ int tqchildren = 0;
PMObject* o;
if( !m_pBrickSize->isDataValid( ) )
@@ -172,13 +172,13 @@ bool PMListPatternEdit::isDataValid( )
// count child objects
for( o = m_pDisplayedObject->firstChild( ); o; o = o->nextSibling( ) )
if( o->type( ) == m_pDisplayedObject->listObjectType( ) )
- children++;
+ tqchildren++;
switch( m_pTypeCombo->currentItem( ) )
{
case 0:
case 1:
- if( children > 2 )
+ if( tqchildren > 2 )
{
KMessageBox::error( this, i18n( "You can have at most two child"
" items for that list type!" ),