summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmtexturemapedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmtexturemapedit.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmtexturemapedit.cpp')
-rw-r--r--kpovmodeler/pmtexturemapedit.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kpovmodeler/pmtexturemapedit.cpp b/kpovmodeler/pmtexturemapedit.cpp
index 6faf4376..2efa7708 100644
--- a/kpovmodeler/pmtexturemapedit.cpp
+++ b/kpovmodeler/pmtexturemapedit.cpp
@@ -20,13 +20,13 @@
#include "pmtexturemap.h"
#include "pmlineedits.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kmessagebox.h>
-PMTextureMapEdit::PMTextureMapEdit( QWidget* parent, const char* name )
+PMTextureMapEdit::PMTextureMapEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -36,27 +36,27 @@ PMTextureMapEdit::PMTextureMapEdit( QWidget* parent, const char* name )
void PMTextureMapEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- topLayout( )->addWidget( new QLabel( i18n( "Map values:" ), this ) );
- m_pNoChildLabel = new QLabel( i18n( "(No Child Objects)" ), this );
- m_pPureLinkLabel = new QLabel( i18n( "(Pure Link)" ), this );
+ topLayout( )->addWidget( new TQLabel( i18n( "Map values:" ), this ) );
+ m_pNoChildLabel = new TQLabel( i18n( "(No Child Objects)" ), this );
+ m_pPureLinkLabel = new TQLabel( i18n( "(Pure Link)" ), this );
topLayout( )->addWidget( m_pNoChildLabel );
topLayout( )->addWidget( m_pPureLinkLabel );
- QHBoxLayout* hl = new QHBoxLayout( topLayout( ) );
- m_pEditLayout = new QVBoxLayout( hl );
+ TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) );
+ m_pEditLayout = new TQVBoxLayout( hl );
hl->addStretch( 1 );
}
void PMTextureMapEdit::displayObject( PMObject* o )
{
- QString str;
+ TQString str;
if( o->isA( "TextureMapBase" ) )
{
bool readOnly = o->isReadOnly( );
m_pDisplayedObject = ( PMTextureMapBase* ) o;
- QValueList<double> mv = m_pDisplayedObject->mapValues( );
- QValueList<double>::Iterator vit = mv.begin( );
- QPtrListIterator<PMFloatEdit> eit( m_edits );
+ TQValueList<double> mv = m_pDisplayedObject->mapValues( );
+ TQValueList<double>::Iterator vit = mv.begin( );
+ TQPtrListIterator<PMFloatEdit> eit( m_edits );
PMFloatEdit* edit;
m_numValues = 0;
@@ -78,7 +78,7 @@ void PMTextureMapEdit::displayObject( PMObject* o )
edit->setValue( *vit );
edit->setValidation( true, 0.0, true, 1.0 );
edit->setReadOnly( readOnly );
- connect( edit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( edit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
m_numValues++;
}
@@ -115,9 +115,9 @@ void PMTextureMapEdit::saveContents( )
{
if( m_numValues > 0 )
{
- QPtrListIterator<PMFloatEdit> it( m_edits );
+ TQPtrListIterator<PMFloatEdit> it( m_edits );
int i = 0;
- QValueList<double> values;
+ TQValueList<double> values;
for( ; ( i < m_numValues ) && it.current( ); ++i, ++it )
values.append( it.current( )->value( ) );
@@ -129,7 +129,7 @@ void PMTextureMapEdit::saveContents( )
bool PMTextureMapEdit::isDataValid( )
{
- QPtrListIterator<PMFloatEdit> it( m_edits );
+ TQPtrListIterator<PMFloatEdit> it( m_edits );
int i = 0;
double last = 0.0;