summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmobjectselect.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kpovmodeler/pmobjectselect.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmobjectselect.cpp')
-rw-r--r--kpovmodeler/pmobjectselect.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kpovmodeler/pmobjectselect.cpp b/kpovmodeler/pmobjectselect.cpp
index fcfbb3f5..5469c487 100644
--- a/kpovmodeler/pmobjectselect.cpp
+++ b/kpovmodeler/pmobjectselect.cpp
@@ -84,8 +84,8 @@ PMListBoxObject::~PMListBoxObject( )
TQSize PMObjectSelect::s_size = TQSize( 200, 300 );
-PMObjectSelect::PMObjectSelect( TQWidget* parent, const char* name, bool modal )
- : KDialogBase( parent, name, modal, i18n( "Choose Object" ), Ok | Cancel )
+PMObjectSelect::PMObjectSelect( TQWidget* tqparent, const char* name, bool modal )
+ : KDialogBase( tqparent, name, modal, i18n( "Choose Object" ), Ok | Cancel )
{
m_pSelectedObject = 0;
m_pListBox = new TQListBox( this );
@@ -110,7 +110,7 @@ void PMObjectSelect::addObject( PMObject* obj )
}
int PMObjectSelect::selectObject( PMObject* link, const TQString& t,
- PMObject* & obj, TQWidget* parent )
+ PMObject* & obj, TQWidget* tqparent )
{
PMObject* last = link;
PMObject* scene;
@@ -119,7 +119,7 @@ int PMObjectSelect::selectObject( PMObject* link, const TQString& t,
do
{
- scene = last->parent( );
+ scene = last->tqparent( );
if( scene )
{
if( scene->type( ) == "Scene" )
@@ -129,7 +129,7 @@ int PMObjectSelect::selectObject( PMObject* link, const TQString& t,
found = true;
}
else
- last = last->parent( );
+ last = last->tqparent( );
}
else
stop = true;
@@ -138,7 +138,7 @@ int PMObjectSelect::selectObject( PMObject* link, const TQString& t,
if( found )
{
- PMObjectSelect s( parent );
+ PMObjectSelect s( tqparent );
PMObject* o = scene->firstChild( );
bool l = false;
@@ -167,7 +167,7 @@ int PMObjectSelect::selectObject( PMObject* link, const TQString& t,
int PMObjectSelect::selectObject( PMObject* link,
const TQStringList& t,
- PMObject* & obj, TQWidget* parent )
+ PMObject* & obj, TQWidget* tqparent )
{
PMObject* last = link;
PMObject* scene;
@@ -176,7 +176,7 @@ int PMObjectSelect::selectObject( PMObject* link,
do
{
- scene = last->parent( );
+ scene = last->tqparent( );
if( scene )
{
if( scene->type( ) == "Scene" )
@@ -186,7 +186,7 @@ int PMObjectSelect::selectObject( PMObject* link,
found = true;
}
else
- last = last->parent( );
+ last = last->tqparent( );
}
else
stop = true;
@@ -195,14 +195,14 @@ int PMObjectSelect::selectObject( PMObject* link,
if( found )
{
- PMObjectSelect s( parent );
+ PMObjectSelect s( tqparent );
PMObject* o = scene->firstChild( );
bool l = false;
while( o && !l && last )
{
- if( t.findIndex( o->type( ) ) >= 0 )
+ if( t.tqfindIndex( o->type( ) ) >= 0 )
s.m_pListBox->insertItem( new PMListBoxObject( o ) );
if( o == last )
@@ -223,7 +223,7 @@ int PMObjectSelect::selectObject( PMObject* link,
}
int PMObjectSelect::selectDeclare( PMObject* link, const TQString& declareType,
- PMObject* & obj, TQWidget* parent )
+ PMObject* & obj, TQWidget* tqparent )
{
PMObject* last = link;
PMObject* scene;
@@ -232,7 +232,7 @@ int PMObjectSelect::selectDeclare( PMObject* link, const TQString& declareType,
do
{
- scene = last->parent( );
+ scene = last->tqparent( );
if( scene )
{
if( scene->type( ) == "Scene" )
@@ -242,7 +242,7 @@ int PMObjectSelect::selectDeclare( PMObject* link, const TQString& declareType,
found = true;
}
else
- last = last->parent( );
+ last = last->tqparent( );
}
else
stop = true;
@@ -251,7 +251,7 @@ int PMObjectSelect::selectDeclare( PMObject* link, const TQString& declareType,
if( found )
{
- PMObjectSelect s( parent );
+ PMObjectSelect s( tqparent );
PMObject* o = scene->firstChild( );
PMDeclare* decl;
@@ -285,7 +285,7 @@ int PMObjectSelect::selectDeclare( PMObject* link, const TQString& declareType,
}
int PMObjectSelect::selectDeclare( PMObject* link, const TQStringList& declareTypes,
- PMObject* & obj, TQWidget* parent )
+ PMObject* & obj, TQWidget* tqparent )
{
PMObject* last = link;
PMObject* scene;
@@ -294,7 +294,7 @@ int PMObjectSelect::selectDeclare( PMObject* link, const TQStringList& declareTy
do
{
- scene = last->parent( );
+ scene = last->tqparent( );
if( scene )
{
if( scene->type( ) == "Scene" )
@@ -304,7 +304,7 @@ int PMObjectSelect::selectDeclare( PMObject* link, const TQStringList& declareTy
found = true;
}
else
- last = last->parent( );
+ last = last->tqparent( );
}
else
stop = true;
@@ -313,7 +313,7 @@ int PMObjectSelect::selectDeclare( PMObject* link, const TQStringList& declareTy
if( found )
{
- PMObjectSelect s( parent );
+ PMObjectSelect s( tqparent );
PMObject* o = scene->firstChild( );
PMDeclare* decl;
@@ -325,7 +325,7 @@ int PMObjectSelect::selectDeclare( PMObject* link, const TQStringList& declareTy
if( o->type( ) == "Declare" )
{
decl = ( PMDeclare* ) o;
- if( declareTypes.findIndex( decl->declareType( ) ) >= 0 )
+ if( declareTypes.tqfindIndex( decl->declareType( ) ) >= 0 )
s.m_pListBox->insertItem( new PMListBoxObject( o ) );
}