summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmlistpatternedit.cpp
diff options
context:
space:
mode:
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!" ),