summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmfogedit.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/pmfogedit.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/pmfogedit.cpp')
-rw-r--r--kpovmodeler/pmfogedit.cpp90
1 files changed, 45 insertions, 45 deletions
diff --git a/kpovmodeler/pmfogedit.cpp b/kpovmodeler/pmfogedit.cpp
index 64cb915e..ec9880c1 100644
--- a/kpovmodeler/pmfogedit.cpp
+++ b/kpovmodeler/pmfogedit.cpp
@@ -22,15 +22,15 @@
#include "pmvectoredit.h"
#include "pmcoloredit.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kdialog.h>
-PMFogEdit::PMFogEdit( QWidget* parent, const char* name )
+PMFogEdit::PMFogEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -38,73 +38,73 @@ PMFogEdit::PMFogEdit( QWidget* parent, const char* name )
void PMFogEdit::createTopWidgets( )
{
- QHBoxLayout* hl;
- QVBoxLayout* vl;
- QGridLayout* gl;
- QLabel* lbl;
+ TQHBoxLayout* hl;
+ TQVBoxLayout* vl;
+ TQGridLayout* gl;
+ TQLabel* lbl;
Base::createTopWidgets( );
- lbl = new QLabel( i18n( "Fog type:" ), this );
- m_pFogTypeEdit = new QComboBox( this );
+ lbl = new TQLabel( i18n( "Fog type:" ), this );
+ m_pFogTypeEdit = new TQComboBox( this );
m_pFogTypeEdit->insertItem( i18n( "Constant" ) );
m_pFogTypeEdit->insertItem( i18n( "Ground" ) );
- hl = new QHBoxLayout( topLayout( ) );
+ hl = new TQHBoxLayout( topLayout( ) );
hl->addWidget( lbl );
hl->addWidget( m_pFogTypeEdit );
hl->addStretch( 1 );
- lbl = new QLabel( i18n( "Distance:" ), this );
+ lbl = new TQLabel( i18n( "Distance:" ), this );
m_pDistance = new PMFloatEdit( this );
- hl = new QHBoxLayout( topLayout( ) );
+ hl = new TQHBoxLayout( topLayout( ) );
hl->addWidget( lbl );
hl->addWidget( m_pDistance );
hl->addStretch( 1 );
- lbl = new QLabel( i18n( "Color:" ), this );
+ lbl = new TQLabel( i18n( "Color:" ), this );
m_pColor = new PMColorEdit( false, this );
- hl = new QHBoxLayout( topLayout( ) );
+ hl = new TQHBoxLayout( topLayout( ) );
hl->addWidget( lbl );
hl->addWidget( m_pColor );
hl->addStretch( 1 );
- m_pTurbulenceCheck = new QCheckBox( i18n( "Turbulence" ), this );
+ m_pTurbulenceCheck = new TQCheckBox( i18n( "Turbulence" ), this );
topLayout( )->addWidget( m_pTurbulenceCheck );
- m_pTurbulenceWidget = new QWidget( this );
- vl = new QVBoxLayout( m_pTurbulenceWidget, 0, KDialog::spacingHint( ) );
- hl = new QHBoxLayout( vl );
- lbl = new QLabel( i18n( "Value: " ), m_pTurbulenceWidget );
+ m_pTurbulenceWidget = new TQWidget( this );
+ vl = new TQVBoxLayout( m_pTurbulenceWidget, 0, KDialog::spacingHint( ) );
+ hl = new TQHBoxLayout( vl );
+ lbl = new TQLabel( i18n( "Value: " ), m_pTurbulenceWidget );
m_pTurbulenceVector = new PMVectorEdit( "x", "y", "z", m_pTurbulenceWidget);
hl->addWidget( lbl );
hl->addWidget( m_pTurbulenceVector );
hl->addStretch( 1 );
- hl = new QHBoxLayout( vl );
- gl = new QGridLayout( hl, 4, 2 );
- lbl = new QLabel( i18n( "Octaves:" ), m_pTurbulenceWidget );
+ hl = new TQHBoxLayout( vl );
+ gl = new TQGridLayout( hl, 4, 2 );
+ lbl = new TQLabel( i18n( "Octaves:" ), m_pTurbulenceWidget );
m_pOctaves = new PMIntEdit( m_pTurbulenceWidget );
gl->addWidget( lbl, 0, 0 );
gl->addWidget( m_pOctaves, 0, 1 );
- lbl = new QLabel( i18n( "Omega:" ), m_pTurbulenceWidget );
+ lbl = new TQLabel( i18n( "Omega:" ), m_pTurbulenceWidget );
m_pOmega = new PMFloatEdit( m_pTurbulenceWidget );
gl->addWidget( lbl, 1, 0 );
gl->addWidget( m_pOmega, 1, 1 );
- lbl = new QLabel( i18n( "Lambda:" ), m_pTurbulenceWidget );
+ lbl = new TQLabel( i18n( "Lambda:" ), m_pTurbulenceWidget );
m_pLambda = new PMFloatEdit( m_pTurbulenceWidget );
gl->addWidget( lbl, 2, 0 );
gl->addWidget( m_pLambda, 2, 1 );
- lbl = new QLabel( i18n( "Depth:" ), m_pTurbulenceWidget );
+ lbl = new TQLabel( i18n( "Depth:" ), m_pTurbulenceWidget );
m_pDepth = new PMFloatEdit( m_pTurbulenceWidget );
gl->addWidget( lbl, 3, 0 );
gl->addWidget( m_pDepth, 3, 1 );
hl->addStretch( 1 );
topLayout( )->addWidget( m_pTurbulenceWidget );
- hl = new QHBoxLayout( topLayout( ) );
- gl = new QGridLayout( hl, 2, 2 );
- m_pFogOffsetLabel = new QLabel( i18n( "Offset: " ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ gl = new TQGridLayout( hl, 2, 2 );
+ m_pFogOffsetLabel = new TQLabel( i18n( "Offset: " ), this );
m_pFogOffset = new PMFloatEdit( this );
- m_pFogAltLabel = new QLabel( i18n( "Altitude: " ), this );
+ m_pFogAltLabel = new TQLabel( i18n( "Altitude: " ), this );
m_pFogAlt = new PMFloatEdit( this );
gl->addWidget( m_pFogOffsetLabel, 0, 0 );
gl->addWidget( m_pFogOffset, 0, 1 );
@@ -112,24 +112,24 @@ void PMFogEdit::createTopWidgets( )
gl->addWidget( m_pFogAlt, 1, 1 );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- m_pUpLabel = new QLabel( i18n( "Up: " ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ m_pUpLabel = new TQLabel( i18n( "Up: " ), this );
m_pUp = new PMVectorEdit( "x", "y", "z", this );
hl->addWidget( m_pUpLabel );
hl->addWidget( m_pUp );
- connect( m_pFogTypeEdit, SIGNAL( activated( int ) ), SLOT( slotFogTypeChanged( int ) ) );
- connect( m_pDistance, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pColor, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pTurbulenceCheck, SIGNAL( clicked( ) ), SLOT( slotTurbulenceClicked( ) ) );
- connect( m_pTurbulenceVector, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pOctaves, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pOmega, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pLambda, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pDepth, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pFogOffset, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pFogAlt, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pUp, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pFogTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotFogTypeChanged( int ) ) );
+ connect( m_pDistance, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pColor, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pTurbulenceCheck, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotTurbulenceClicked( ) ) );
+ connect( m_pTurbulenceVector, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pOctaves, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pOmega, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pLambda, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pDepth, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pFogOffset, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pFogAlt, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pUp, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMFogEdit::displayObject( PMObject* o )