summaryrefslogtreecommitdiffstats
path: root/buildtools/qmake/projectconfigurationdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/qmake/projectconfigurationdlg.cpp')
-rw-r--r--buildtools/qmake/projectconfigurationdlg.cpp304
1 files changed, 152 insertions, 152 deletions
diff --git a/buildtools/qmake/projectconfigurationdlg.cpp b/buildtools/qmake/projectconfigurationdlg.cpp
index 7c646e62..771a1f5f 100644
--- a/buildtools/qmake/projectconfigurationdlg.cpp
+++ b/buildtools/qmake/projectconfigurationdlg.cpp
@@ -51,15 +51,15 @@
#include "scope.h"
#include "urlutil.h"
-InsideCheckListItem::InsideCheckListItem( TQListView *parent, QMakeScopeItem *item, ProjectConfigurationDlg *config ) :
- TQCheckListItem( parent, item->relativePath().endsWith("/") ? item->relativePath().right( item->relativePath().length() - 1 ) : item->relativePath(), TQCheckListItem::CheckBox )
+InsideCheckListItem::InsideCheckListItem( TQListView *tqparent, TQMakeScopeItem *item, ProjectConfigurationDlg *config ) :
+ TQCheckListItem( tqparent, item->relativePath().endsWith("/") ? item->relativePath().right( item->relativePath().length() - 1 ) : item->relativePath(), TQCheckListItem::CheckBox )
{
prjItem = item;
m_config = config;
}
-InsideCheckListItem::InsideCheckListItem( TQListView *parent, TQListViewItem *after, QMakeScopeItem *item, ProjectConfigurationDlg *config ) :
- TQCheckListItem( parent,
+InsideCheckListItem::InsideCheckListItem( TQListView *tqparent, TQListViewItem *after, TQMakeScopeItem *item, ProjectConfigurationDlg *config ) :
+ TQCheckListItem( tqparent,
after,
item->relativePath(), TQCheckListItem::CheckBox )
{
@@ -84,8 +84,8 @@ void InsideCheckListItem::stateChange( bool state )
}
}
-CustomVarListItem::CustomVarListItem(TQListView* parent, unsigned int id, TQMap<TQString, TQString> var)
- : KListViewItem(parent), m_key(id)
+CustomVarListItem::CustomVarListItem(TQListView* tqparent, unsigned int id, TQMap<TQString, TQString> var)
+ : KListViewItem(tqparent), m_key(id)
{
setText(0, var["var"]);
setText(1, var["op"]);
@@ -99,18 +99,18 @@ TQString CustomVarListItem::key(int column, bool ascending) const
return KListViewItem::key(column, ascending);
}
-ProjectConfigurationDlg::ProjectConfigurationDlg( TQListView *_prjList, TrollProjectWidget* _prjWidget, TQWidget* parent, const char* name, bool modal, WFlags fl )
- : ProjectConfigurationDlgBase( parent, name, modal, fl | Qt::WStyle_Tool ), myProjectItem(0)
+ProjectConfigurationDlg::ProjectConfigurationDlg( TQListView *_prjList, TrollProjectWidget* _prjWidget, TQWidget* tqparent, const char* name, bool modal, WFlags fl )
+ : ProjectConfigurationDlgBase( tqparent, name, modal, fl | TQt::WStyle_Tool ), myProjectItem(0)
{
prjList = _prjList;
prjWidget = _prjWidget;
// m_projectConfiguration = conf;
m_targetLibraryVersion->setValidator( new TQRegExpValidator(
- TQRegExp( "\\d+(\\.\\d+)?(\\.\\d+)" ), this ) );
+ TQRegExp( "\\d+(\\.\\d+)?(\\.\\d+)" ), TQT_TQOBJECT(this) ) );
customVariables->setSortColumn(0);
- customVariables->setSortOrder(Qt::Ascending);
- mocdir_url->completionObject()->setMode(KURLCompletion::DirCompletion);
- mocdir_url->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
+ customVariables->setSortOrder(TQt::Ascending);
+ tqmocdir_url->completionObject()->setMode(KURLCompletion::DirCompletion);
+ tqmocdir_url->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
objdir_url->completionObject()->setMode(KURLCompletion::DirCompletion);
objdir_url->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
rccdir_url->completionObject()->setMode(KURLCompletion::DirCompletion);
@@ -123,7 +123,7 @@ ProjectConfigurationDlg::ProjectConfigurationDlg( TQListView *_prjList, TrollPro
m_targetPath->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
}
-void ProjectConfigurationDlg::updateSubproject( QMakeScopeItem* _item )
+void ProjectConfigurationDlg::updateSubproject( TQMakeScopeItem* _item )
{
if ( myProjectItem && myProjectItem->scope )
{
@@ -158,21 +158,21 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
{
if ( radioApplication->isChecked() )
{
- if( myProjectItem->scope->variableValues("TEMPLATE").findIndex("app") == -1 )
+ if( myProjectItem->scope->variableValues("TEMPLATE").tqfindIndex("app") == -1 )
{
addAppDeps();
removeSharedLibDeps();
removeStaticLibDeps();
}
myProjectItem->scope->setEqualOp( "TEMPLATE", "app" );
- if( myProjectItem->scope->variableValues( "CONFIG" ).findIndex( "staticlib" ) != -1 )
+ if( myProjectItem->scope->variableValues( "CONFIG" ).tqfindIndex( "staticlib" ) != -1 )
myProjectItem->scope->removeFromPlusOp( "CONFIG", "staticlib" );
- if( myProjectItem->scope->variableValues( "CONFIG" ).findIndex( "dll" ) != -1 )
+ if( myProjectItem->scope->variableValues( "CONFIG" ).tqfindIndex( "dll" ) != -1 )
myProjectItem->scope->removeFromPlusOp( "CONFIG", "dll" );
myProjectItem->setPixmap( 0, SmallIcon( "qmake_app" ) );
TQString targetname = prjWidget->getCurrentOutputFilename();
- if( targetname.findRev("/") != -1 )
- targetname = targetname.right( targetname.length() - targetname.findRev("/") - 1 );
+ if( targetname.tqfindRev("/") != -1 )
+ targetname = targetname.right( targetname.length() - targetname.tqfindRev("/") - 1 );
DomUtil::writeEntry( *prjWidget->m_part->projectDom(),
"/kdevtrollproject/run/runarguments/"+targetname, m_editRunArguments->text() );
DomUtil::writeEntry( *prjWidget->m_part->projectDom(),
@@ -186,7 +186,7 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
myProjectItem->scope->setEqualOp( "TEMPLATE", "lib" );
if ( staticRadio->isOn() )
{
- if( myProjectItem->scope->variableValues("CONFIG").findIndex("dll") != -1 )
+ if( myProjectItem->scope->variableValues("CONFIG").tqfindIndex("dll") != -1 )
{
addStaticLibDeps();
removeSharedLibDeps();
@@ -203,14 +203,14 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
if ( sharedRadio->isOn() )
{
kdDebug(9024) << "Activating debug lib:" << myProjectItem->scope->variableValues("CONFIG") << endl;
- if( myProjectItem->scope->variableValues("CONFIG").findIndex("dll") == -1 )
+ if( myProjectItem->scope->variableValues("CONFIG").tqfindIndex("dll") == -1 )
{
addSharedLibDeps();
removeStaticLibDeps();
}
myProjectItem->addValue( "CONFIG", "dll" );
myProjectItem->scope->setEqualOp( "VERSION", m_targetLibraryVersion->text() );
- if ( myProjectItem->scope->variableValues( "CONFIG" ).findIndex( "staticlib" ) != -1 )
+ if ( myProjectItem->scope->variableValues( "CONFIG" ).tqfindIndex( "staticlib" ) != -1 )
myProjectItem->removeValue( "CONFIG", "staticlib" );
}
if ( checkPlugin->isOn() )
@@ -227,15 +227,15 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
}
else if ( radioSubdirs->isChecked() )
{
- if( myProjectItem->scope->variableValues("TEMPLATE").findIndex("subdirs") == -1 )
+ if( myProjectItem->scope->variableValues("TEMPLATE").tqfindIndex("subdirs") == -1 )
{
removeSharedLibDeps();
removeStaticLibDeps();
removeAppDeps();
}
- if( myProjectItem->scope->variableValues( "CONFIG" ).findIndex( "dll" ) != -1 )
+ if( myProjectItem->scope->variableValues( "CONFIG" ).tqfindIndex( "dll" ) != -1 )
myProjectItem->scope->removeFromPlusOp( "CONFIG", "dll" );
- if( myProjectItem->scope->variableValues( "CONFIG" ).findIndex( "staticlib" ) != -1 )
+ if( myProjectItem->scope->variableValues( "CONFIG" ).tqfindIndex( "staticlib" ) != -1 )
myProjectItem->scope->removeFromPlusOp( "CONFIG", "staticlib" );
myProjectItem->scope->setEqualOp( "TEMPLATE", "subdirs" );
myProjectItem->setPixmap( 0, SmallIcon( "folder" ) );
@@ -243,8 +243,8 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
}
// Buildmode
- int releaseidx = myProjectItem->scope->variableValues( "CONFIG" ).findIndex( "release" );
- int debugidx = myProjectItem->scope->variableValues( "CONFIG" ).findIndex( "debug" );
+ int releaseidx = myProjectItem->scope->variableValues( "CONFIG" ).tqfindIndex( "release" );
+ int debugidx = myProjectItem->scope->variableValues( "CONFIG" ).tqfindIndex( "debug" );
if ( radioReleaseMode->isChecked() )
{
if( releaseidx != -1 && releaseidx < debugidx )
@@ -327,8 +327,8 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
else
myProjectItem->removeValue( "CONFIG", "windows" );
- //Qt4 libs
- if ( prjWidget->m_part->isQt4Project() )
+ //TQt4 libs
+ if ( prjWidget->m_part->isTQt4Project() )
{
if ( checkDebugReleaseMode->isChecked() )
myProjectItem->addValue( "CONFIG", "debug_and_release" );
@@ -414,7 +414,7 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
TQStringList extraValues = TQStringList::split( " ", editConfigExtra->text() );
for ( TQStringList::iterator it = confValues.begin() ; it != confValues.end() ; ++it )
{
- if ( Scope::KnownConfigValues.findIndex( *it ) == -1 && extraValues.findIndex( *it ) == -1 )
+ if ( Scope::KnownConfigValues.tqfindIndex( *it ) == -1 && extraValues.tqfindIndex( *it ) == -1 )
{
myProjectItem->scope->removeFromPlusOp( "CONFIG", *it );
}
@@ -422,7 +422,7 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
for ( TQStringList::iterator it = extraValues.begin() ; it != extraValues.end() ; ++it )
{
- if ( confValues.findIndex( *it ) == -1 )
+ if ( confValues.tqfindIndex( *it ) == -1 )
myProjectItem->scope->addToPlusOp( "CONFIG", *it );
}
@@ -431,9 +431,9 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
// targetpath = URLUtil::getRelativePath( myProjectItem->scope->projectDir(), targetpath );
if( myProjectItem->scope->scopeType() == Scope::FunctionScope || myProjectItem->scope->scopeType() == Scope::SimpleScope )
{
- if( myProjectItem->scope->variableValues("TARGET").findIndex( m_targetOutputFile->text() ) == -1 )
+ if( myProjectItem->scope->variableValues("TARGET").tqfindIndex( m_targetOutputFile->text() ) == -1 )
myProjectItem->scope->setEqualOp( "TARGET", TQStringList( m_targetOutputFile->text() ) );
- if( myProjectItem->scope->variableValues("DESTDIR").findIndex( targetpath ) == -1 )
+ if( myProjectItem->scope->variableValues("DESTDIR").tqfindIndex( targetpath ) == -1 )
myProjectItem->scope->setEqualOp( "DESTDIR", TQStringList( targetpath ) );
}else
{
@@ -442,8 +442,8 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
}
myProjectItem->updateValues( "DEFINES", TQStringList::split( " ", m_defines->text() ) );
- myProjectItem->updateValues( "QMAKE_CXXFLAGS_DEBUG", TQStringList::split( " ", m_debugFlags->text() ) );
- myProjectItem->updateValues( "QMAKE_CXXFLAGS_RELEASE", TQStringList::split( " ", m_releaseFlags->text() ) );
+ myProjectItem->updateValues( "TQMAKE_CXXFLAGS_DEBUG", TQStringList::split( " ", m_debugFlags->text() ) );
+ myProjectItem->updateValues( "TQMAKE_CXXFLAGS_RELEASE", TQStringList::split( " ", m_releaseFlags->text() ) );
//add selected includes
TQStringList values;
@@ -497,7 +497,7 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
{
TQString tmpLib = insideItem->prjItem->getLibAddObject( myProjectItem->scope->projectDir() );
- if ( insideItem->prjItem->scope->variableValues( "CONFIG" ).findIndex( "dll" ) != -1 )
+ if ( insideItem->prjItem->scope->variableValues( "CONFIG" ).tqfindIndex( "dll" ) != -1 )
{
//add path if shared lib is linked
TQString tmpPath = insideItem->prjItem->getLibAddPath(
@@ -550,14 +550,14 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
{
if ( insideItem->isOn() )
{
- if ( insideItem->prjItem->scope->variableValues( "CONFIG" ).findIndex( "staticlib" ) != -1
- || ( insideItem->prjItem->scope->variableValues( "CONFIG" ).findIndex("dll") == -1
- && insideItem->prjItem->scope->variableValues( "TEMPLATE" ).findIndex("lib") != -1 ) )
+ if ( insideItem->prjItem->scope->variableValues( "CONFIG" ).tqfindIndex( "staticlib" ) != -1
+ || ( insideItem->prjItem->scope->variableValues( "CONFIG" ).tqfindIndex("dll") == -1
+ && insideItem->prjItem->scope->variableValues( "TEMPLATE" ).tqfindIndex("lib") != -1 ) )
{
values << insideItem->prjItem->getLibAddObject(
myProjectItem->scope->projectDir() );
}
- else if ( insideItem->prjItem->scope->variableValues( "CONFIG" ).findIndex( "dll" ) != -1 )
+ else if ( insideItem->prjItem->scope->variableValues( "CONFIG" ).tqfindIndex( "dll" ) != -1 )
{
values << insideItem->prjItem->getSharedLibAddObject(
myProjectItem->scope->projectDir() );
@@ -576,7 +576,7 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
values.clear();
//change build order
lvItem = buildorder_listview->firstChild();
- if ( lvItem && lvItem->itemBelow() && myProjectItem->scope->variableValues("TEMPLATE").findIndex("subdirs") != -1 )
+ if ( lvItem && lvItem->itemBelow() && myProjectItem->scope->variableValues("TEMPLATE").tqfindIndex("subdirs") != -1 )
{
while ( lvItem )
@@ -603,7 +603,7 @@ void ProjectConfigurationDlg::updateProjectConfiguration()
// intermediate locations
myProjectItem->scope->setEqualOp( "OBJECTS_DIR", TQStringList( objdir_url->url() ) );
myProjectItem->scope->setEqualOp( "UI_DIR", TQStringList( uidir_url->url() ) );
- myProjectItem->scope->setEqualOp( "MOC_DIR", TQStringList( mocdir_url->url() ) );
+ myProjectItem->scope->setEqualOp( "TQMOC_DIR", TQStringList( tqmocdir_url->url() ) );
myProjectItem->scope->setEqualOp( "RCC_DIR", TQStringList( rccdir_url->url() ) );
//CORBA
@@ -648,14 +648,14 @@ void ProjectConfigurationDlg::updateControls()
TQStringList templateValues = myProjectItem->scope->variableValues( "TEMPLATE" );
//if( !myProjectItem->isScope )
//{
- if ( templateValues.findIndex( "lib" ) != -1 )
+ if ( templateValues.tqfindIndex( "lib" ) != -1 )
{
groupLibraries->setEnabled( true );
radioLibrary->setChecked( true );
staticRadio->setChecked( true ); //default
- if ( configValues.findIndex( "staticlib" ) != -1 )
+ if ( configValues.tqfindIndex( "staticlib" ) != -1 )
{
staticRadio->setChecked( true );
checkPlugin->setEnabled( false );
@@ -663,11 +663,11 @@ void ProjectConfigurationDlg::updateControls()
}
else
staticRadio->setChecked( false );
- if ( configValues.findIndex( "dll" ) != -1 )
+ if ( configValues.tqfindIndex( "dll" ) != -1 )
{
sharedRadio->setChecked( true );
checkPlugin->setEnabled( true );
- if( prjWidget->m_part->isQt4Project() )
+ if( prjWidget->m_part->isTQt4Project() )
checkDesigner->setEnabled( true );
m_targetLibraryVersion->setText( myProjectItem->scope->variableValues( "VERSION" ).front() );
}
@@ -684,33 +684,33 @@ void ProjectConfigurationDlg::updateControls()
checkDesigner->setEnabled( false );
}
- if ( configValues.findIndex( "plugin" ) != -1 )
+ if ( configValues.tqfindIndex( "plugin" ) != -1 )
checkPlugin->setChecked( true );
else
checkPlugin->setChecked( false );
- if ( configValues.findIndex( "designer" ) != -1 )
+ if ( configValues.tqfindIndex( "designer" ) != -1 )
checkDesigner->setChecked( true );
else
checkDesigner->setChecked( false );
- if ( configValues.findIndex( "compile_libtool" ) != -1 )
+ if ( configValues.tqfindIndex( "compile_libtool" ) != -1 )
checkLibtool->setChecked( true );
else
checkLibtool->setChecked( false );
}
- else if ( templateValues.findIndex( "subdirs" ) != -1 )
+ else if ( templateValues.tqfindIndex( "subdirs" ) != -1 )
{
radioSubdirs->setChecked( true );
}else
{
//Default is app mode
radioApplication->setChecked( true );
- if ( configValues.findIndex( "console" ) != -1 )
+ if ( configValues.tqfindIndex( "console" ) != -1 )
{
checkConsole->setChecked( true );
}
TQString targetname = prjWidget->getCurrentOutputFilename();
- if( targetname.findRev("/") != -1 )
- targetname = targetname.right( targetname.length() - targetname.findRev("/") - 1 );
+ if( targetname.tqfindRev("/") != -1 )
+ targetname = targetname.right( targetname.length() - targetname.tqfindRev("/") - 1 );
m_editRunArguments->setText( DomUtil::readEntry( *prjWidget->m_part->projectDom(), "/kdevtrollproject/run/runarguments/"+targetname, "" ) );
TQString dir = DomUtil::readEntry( *prjWidget->m_part->projectDom(), "/kdevtrollproject/run/cwd/"+targetname, "" );
@@ -731,15 +731,15 @@ void ProjectConfigurationDlg::updateControls()
TQString destdir = myProjectItem->m_widget->getCurrentDestDir();
if( !destdir.startsWith( "/" ) )
destdir = myProjectItem->m_widget->projectDirectory()+"/"+destdir;
- m_CWDEdit->setURL( destdir.left( destdir.findRev("/") ) );
- m_CWDEdit->fileDialog()->setURL( KURL::fromPathOrURL( destdir.left( destdir.findRev("/") ) ) );
+ m_CWDEdit->setURL( destdir.left( destdir.tqfindRev("/") ) );
+ m_CWDEdit->fileDialog()->setURL( KURL::fromPathOrURL( destdir.left( destdir.tqfindRev("/") ) ) );
}
m_editDebugArguments->setText( DomUtil::readEntry( *prjWidget->m_part->projectDom(), "/kdevtrollproject/run/debugarguments/"+targetname, "" ) );
}
// Buildmode
- int debugidx = configValues.findIndex( "debug" );
- int releaseidx = configValues.findIndex( "release" );
+ int debugidx = configValues.tqfindIndex( "debug" );
+ int releaseidx = configValues.tqfindIndex( "release" );
if ( debugidx != -1 && debugidx > releaseidx )
{
radioDebugMode->setChecked( true );
@@ -748,138 +748,138 @@ void ProjectConfigurationDlg::updateControls()
{
radioReleaseMode->setChecked( true );
}
- if ( configValues.findIndex( "debug_and_release" ) != -1 )
+ if ( configValues.tqfindIndex( "debug_and_release" ) != -1 )
{
checkDebugReleaseMode->setChecked( true );
}
// Requirements
- if ( configValues.findIndex( "qt" ) != -1 )
+ if ( configValues.tqfindIndex( "qt" ) != -1 )
checkQt->setChecked( true );
else
checkQt->setChecked( false );
- if ( configValues.findIndex( "opengl" ) != -1 )
+ if ( configValues.tqfindIndex( "opengl" ) != -1 )
checkOpenGL->setChecked( true );
else
checkOpenGL->setChecked( false );
- if ( configValues.findIndex( "thread" ) != -1 )
+ if ( configValues.tqfindIndex( "thread" ) != -1 )
checkThread->setChecked( true );
else
checkThread->setChecked( false );
- if ( configValues.findIndex( "x11" ) != -1 )
+ if ( configValues.tqfindIndex( "x11" ) != -1 )
checkX11->setChecked( true );
else
checkX11->setChecked( false );
- if ( configValues.findIndex( "ordered" ) != -1 )
+ if ( configValues.tqfindIndex( "ordered" ) != -1 )
checkOrdered->setChecked( true );
else
checkOrdered->setChecked( false );
- if ( configValues.findIndex( "exceptions" ) != -1 )
+ if ( configValues.tqfindIndex( "exceptions" ) != -1 )
exceptionCheck->setChecked( true );
else
exceptionCheck->setChecked( false );
- if ( configValues.findIndex( "stl" ) != -1 )
+ if ( configValues.tqfindIndex( "stl" ) != -1 )
stlCheck->setChecked( true );
else
stlCheck->setChecked( false );
- if ( configValues.findIndex( "rtti" ) != -1 )
+ if ( configValues.tqfindIndex( "rtti" ) != -1 )
rttiCheck->setChecked( true );
else
rttiCheck->setChecked( false );
- if ( configValues.findIndex( "precompile_header" ) != -1 )
+ if ( configValues.tqfindIndex( "precompile_header" ) != -1 )
checkPCH->setChecked( true );
else
checkPCH->setChecked( false );
// Warnings
- if ( configValues.findIndex( "warn_on" ) != -1 )
+ if ( configValues.tqfindIndex( "warn_on" ) != -1 )
{
checkWarning->setChecked( true );
}
- if ( configValues.findIndex( "warn_off" ) != -1 )
+ if ( configValues.tqfindIndex( "warn_off" ) != -1 )
{
checkWarning->setChecked( false );
}
- if ( configValues.findIndex( "windows" ) != -1 )
+ if ( configValues.tqfindIndex( "windows" ) != -1 )
checkWindows->setChecked( true );
else
checkWindows->setChecked( false );
- //Qt4 libs
- if ( prjWidget->m_part->isQt4Project() )
+ //TQt4 libs
+ if ( prjWidget->m_part->isTQt4Project() )
{
- if ( configValues.findIndex( "assistant" ) != -1 )
+ if ( configValues.tqfindIndex( "assistant" ) != -1 )
checkAssistant->setChecked( true );
else
checkAssistant->setChecked( false );
- if ( configValues.findIndex( "qtestlib" ) != -1 )
+ if ( configValues.tqfindIndex( "qtestlib" ) != -1 )
checkTestlib->setChecked( true );
else
checkTestlib->setChecked( false );
- if ( configValues.findIndex( "uitools" ) != -1 )
+ if ( configValues.tqfindIndex( "uitools" ) != -1 )
checkUiTools->setChecked( true );
else
checkUiTools->setChecked( false );
- if ( configValues.findIndex( "dbus" ) != -1 )
+ if ( configValues.tqfindIndex( "dbus" ) != -1 )
checkQDBus->setChecked( true );
else
checkQDBus->setChecked( false );
- if ( configValues.findIndex( "build_all" ) != -1 )
+ if ( configValues.tqfindIndex( "build_all" ) != -1 )
checkBuildAll->setChecked( true );
else
checkBuildAll->setChecked( false );
- if ( configValues.findIndex( "help" ) != -1 )
+ if ( configValues.tqfindIndex( "help" ) != -1 )
checkQtHelp->setChecked( true );
else
checkQtHelp->setChecked( false );
TQStringList qtLibs = myProjectItem->scope->variableValues( "QT" );
- if ( qtLibs.findIndex( "core" ) != -1 )
+ if ( qtLibs.tqfindIndex( "core" ) != -1 )
checkQt4Core->setChecked( true );
else
checkQt4Core->setChecked( false );
- if ( qtLibs.findIndex( "gui" ) != -1 )
+ if ( qtLibs.tqfindIndex( "gui" ) != -1 )
checkQt4Gui->setChecked( true );
else
checkQt4Gui->setChecked( false );
- if ( qtLibs.findIndex( "sql" ) != -1 )
+ if ( qtLibs.tqfindIndex( "sql" ) != -1 )
checkQt4SQL->setChecked( true );
else
checkQt4SQL->setChecked( false );
- if ( qtLibs.findIndex( "xml" ) != -1 )
+ if ( qtLibs.tqfindIndex( "xml" ) != -1 )
checkQt4XML->setChecked( true );
else
checkQt4XML->setChecked( false );
- if ( qtLibs.findIndex( "network" ) != -1 )
+ if ( qtLibs.tqfindIndex( "network" ) != -1 )
checkQt4Network->setChecked( true );
else
checkQt4Network->setChecked( false );
- if ( qtLibs.findIndex( "svg" ) != -1 )
+ if ( qtLibs.tqfindIndex( "svg" ) != -1 )
checkQt4SVG->setChecked( true );
else
checkQt4SVG->setChecked( false );
- if ( qtLibs.findIndex( "opengl" ) != -1 )
+ if ( qtLibs.tqfindIndex( "opengl" ) != -1 )
checkQt4OpenGL->setChecked( true );
else
checkQt4OpenGL->setChecked( false );
- if ( qtLibs.findIndex( "qt3support" ) != -1 )
+ if ( qtLibs.tqfindIndex( "qt3support" ) != -1 )
checkQt3Support->setChecked( true );
else
checkQt3Support->setChecked( false );
- if ( qtLibs.findIndex( "script" ) != -1 )
+ if ( qtLibs.tqfindIndex( "script" ) != -1 )
checkQtScript->setChecked( true );
else
checkQtScript->setChecked( false );
- if ( qtLibs.findIndex( "phonon" ) != -1 )
+ if ( qtLibs.tqfindIndex( "phonon" ) != -1 )
checkPhonon->setChecked( true );
else
checkPhonon->setChecked( false );
- if ( qtLibs.findIndex( "webkit" ) != -1 )
+ if ( qtLibs.tqfindIndex( "webkit" ) != -1 )
checkQtWebKit->setChecked( true );
else
checkQtWebKit->setChecked( false );
- if ( qtLibs.findIndex( "xmlpatterns" ) != -1 )
+ if ( qtLibs.tqfindIndex( "xmlpatterns" ) != -1 )
checkQtXmlPatterns->setChecked( true );
else
checkQtXmlPatterns->setChecked( false );
@@ -895,7 +895,7 @@ void ProjectConfigurationDlg::updateControls()
TQStringList extraValues;
for ( TQStringList::const_iterator it = configValues.begin() ; it != configValues.end() ; ++it )
{
- if ( Scope::KnownConfigValues.findIndex( *it ) == -1 )
+ if ( Scope::KnownConfigValues.tqfindIndex( *it ) == -1 )
{
extraValues << *it;
}
@@ -914,7 +914,7 @@ void ProjectConfigurationDlg::updateControls()
}
makefile_url->setURL( dir );
- if ( myProjectItem->scope->variableValues( "INSTALLS" ).findIndex( "target" ) != -1 )
+ if ( myProjectItem->scope->variableValues( "INSTALLS" ).tqfindIndex( "target" ) != -1 )
{
checkInstallTarget->setChecked( true );
m_InstallTargetPath->setEnabled( true );
@@ -941,8 +941,8 @@ void ProjectConfigurationDlg::updateControls()
m_targetPath->setURL( dir );
m_defines->setText( myProjectItem->scope->variableValues( "DEFINES" ).join( " " ) );
- m_debugFlags->setText( myProjectItem->scope->variableValues( "QMAKE_CXXFLAGS_DEBUG" ).join( " " ) );
- m_releaseFlags->setText( myProjectItem->scope->variableValues( "QMAKE_CXXFLAGS_RELEASE" ).join( " " ) );
+ m_debugFlags->setText( myProjectItem->scope->variableValues( "TQMAKE_CXXFLAGS_DEBUG" ).join( " " ) );
+ m_releaseFlags->setText( myProjectItem->scope->variableValues( "TQMAKE_CXXFLAGS_RELEASE" ).join( " " ) );
updateIncludeControl();
updateLibControls();
@@ -971,17 +971,17 @@ void ProjectConfigurationDlg::updateControls()
uidir_url->fileDialog()->setURL( KURL( dir ) );
}
uidir_url->setURL( dir );
- dir = myProjectItem->scope->variableValues( "MOC_DIR" ).front();
+ dir = myProjectItem->scope->variableValues( "TQMOC_DIR" ).front();
if( TQFileInfo(dir).isRelative() )
{
- mocdir_url->completionObject()->setDir( myProjectItem->scope->projectDir() );
- mocdir_url->fileDialog()->setURL( KURL( myProjectItem->scope->projectDir()+"/"+dir ) );
+ tqmocdir_url->completionObject()->setDir( myProjectItem->scope->projectDir() );
+ tqmocdir_url->fileDialog()->setURL( KURL( myProjectItem->scope->projectDir()+"/"+dir ) );
}else
{
- mocdir_url->completionObject()->setDir( dir );
- mocdir_url->fileDialog()->setURL( KURL( dir ) );
+ tqmocdir_url->completionObject()->setDir( dir );
+ tqmocdir_url->fileDialog()->setURL( KURL( dir ) );
}
- mocdir_url->setURL( dir );
+ tqmocdir_url->setURL( dir );
dir = myProjectItem->scope->variableValues( "RC_DIR" ).front();
if( TQFileInfo(dir).isRelative() )
{
@@ -1023,10 +1023,10 @@ void ProjectConfigurationDlg::updateControls()
groupTemplateChanged(0);
}
-TQPtrList<QMakeScopeItem> ProjectConfigurationDlg::getAllProjects()
+TQPtrList<TQMakeScopeItem> ProjectConfigurationDlg::getAllProjects()
{
- TQPtrList <QMakeScopeItem> tmpPrjList;
- QMakeScopeItem *item = static_cast<QMakeScopeItem*>( prjList->firstChild() );
+ TQPtrList <TQMakeScopeItem> tmpPrjList;
+ TQMakeScopeItem *item = static_cast<TQMakeScopeItem*>( prjList->firstChild() );
while ( item )
{
if ( item->scope->scopeType() == Scope::ProjectScope )
@@ -1035,15 +1035,15 @@ TQPtrList<QMakeScopeItem> ProjectConfigurationDlg::getAllProjects()
tmpPrjList.append( item );
getAllSubProjects( item, &tmpPrjList );
}
- item = static_cast<QMakeScopeItem*>( item->nextSibling() );
+ item = static_cast<TQMakeScopeItem*>( item->nextSibling() );
}
return ( tmpPrjList );
}
-void ProjectConfigurationDlg::getAllSubProjects( QMakeScopeItem *item, TQPtrList <QMakeScopeItem> *itemList )
+void ProjectConfigurationDlg::getAllSubProjects( TQMakeScopeItem *item, TQPtrList <TQMakeScopeItem> *itemList )
{
- QMakeScopeItem * subItem = static_cast<QMakeScopeItem*>( item->firstChild() );
+ TQMakeScopeItem * subItem = static_cast<TQMakeScopeItem*>( item->firstChild() );
while ( subItem )
{
if ( subItem->scope->scopeType() == Scope::ProjectScope )
@@ -1052,7 +1052,7 @@ void ProjectConfigurationDlg::getAllSubProjects( QMakeScopeItem *item, TQPtrList
itemList->append( subItem );
getAllSubProjects( subItem, itemList );
}
- subItem = static_cast<QMakeScopeItem*>( subItem->nextSibling() );
+ subItem = static_cast<TQMakeScopeItem*>( subItem->nextSibling() );
}
}
@@ -1066,12 +1066,12 @@ void ProjectConfigurationDlg::updateIncludeControl()
TQStringList incList = myProjectItem->scope->variableValues( "INCLUDEPATH" );
TQStringList intIncList = incList;
TQMap<TQString, InsideCheckListItem*> items;
- TQPtrList <QMakeScopeItem> itemList = getAllProjects();
- QMakeScopeItem *item = itemList.first();
+ TQPtrList <TQMakeScopeItem> itemList = getAllProjects();
+ TQMakeScopeItem *item = itemList.first();
while ( item )
{
- if ( item->scope->variableValues( "TEMPLATE" ).findIndex( "lib" ) != -1 ||
- item->scope->variableValues( "TEMPLATE" ).findIndex( "app" ) != -1 )
+ if ( item->scope->variableValues( "TEMPLATE" ).tqfindIndex( "lib" ) != -1 ||
+ item->scope->variableValues( "TEMPLATE" ).tqfindIndex( "app" ) != -1 )
{
TQString tmpInc = item->getIncAddPath( myProjectItem->scope->projectDir() );
tmpInc = TQDir::cleanDirPath( tmpInc );
@@ -1079,7 +1079,7 @@ void ProjectConfigurationDlg::updateIncludeControl()
insideinc_listview->lastItem(), item, this );
items[tmpInc] = newItem;
- if ( incList.findIndex( tmpInc ) != -1 )
+ if ( incList.tqfindIndex( tmpInc ) != -1 )
{
incList.remove( tmpInc );
newItem->setOn( true );
@@ -1112,7 +1112,7 @@ void ProjectConfigurationDlg::updateIncludeControl()
void ProjectConfigurationDlg::updateLibControls()
{
- TQPtrList <QMakeScopeItem> itemList = getAllProjects();
+ TQPtrList <TQMakeScopeItem> itemList = getAllProjects();
insidelib_listview->setSorting( -1, false );
outsidelib_listview->setSorting( -1, false );
@@ -1125,10 +1125,10 @@ void ProjectConfigurationDlg::updateLibControls()
TQStringList libList = myProjectItem->scope->variableValues( "LIBS" );
TQStringList intLibList = libList;
TQMap<TQString, InsideCheckListItem*> items;
- QMakeScopeItem* item = itemList.first();
+ TQMakeScopeItem* item = itemList.first();
while ( item )
{
- if ( item->scope->variableValues( "TEMPLATE" ).findIndex( "lib" ) != -1 )
+ if ( item->scope->variableValues( "TEMPLATE" ).tqfindIndex( "lib" ) != -1 )
{
if ( item != myProjectItem )
{
@@ -1141,11 +1141,11 @@ void ProjectConfigurationDlg::updateLibControls()
items[tmpLib] = newItem;
TQString tmpLibDir = item->getLibAddPath( myProjectItem->scope->projectDir() );
kdDebug(9024) << "lib:" << tmpLib << " dir:" << tmpLibDir << "|" << libList << endl;
- if ( libList.findIndex( "-L" + tmpLibDir ) != -1 )
+ if ( libList.tqfindIndex( "-L" + tmpLibDir ) != -1 )
{
libList.remove( "-L" + tmpLibDir );
}
- if ( libList.findIndex( tmpLib ) != -1 )
+ if ( libList.tqfindIndex( tmpLib ) != -1 )
{
libList.remove( tmpLib );
newItem->setOn( true );
@@ -1185,7 +1185,7 @@ void ProjectConfigurationDlg::updateLibControls()
void ProjectConfigurationDlg::updateDependenciesControl( )
{
- TQPtrList <QMakeScopeItem> itemList = getAllProjects();
+ TQPtrList <TQMakeScopeItem> itemList = getAllProjects();
intDeps_view->setSorting( -1, false );
extDeps_view->setSorting( -1, false );
@@ -1195,24 +1195,24 @@ void ProjectConfigurationDlg::updateDependenciesControl( )
TQStringList depsList = myProjectItem->scope->variableValues( "TARGETDEPS" );
TQStringList intDepList = depsList;
TQMap<TQString,InsideCheckListItem*> items;
- QMakeScopeItem *item = itemList.first();
+ TQMakeScopeItem *item = itemList.first();
while ( item )
{
TQStringList templateval = item->scope->variableValues( "TEMPLATE" );
- if ( templateval.findIndex( "lib" ) != -1
- || templateval.findIndex( "app" ) != -1 )
+ if ( templateval.tqfindIndex( "lib" ) != -1
+ || templateval.tqfindIndex( "app" ) != -1 )
{
TQString tmpLib;
TQStringList values = item->scope->variableValues( "CONFIG" );
- if ( templateval.findIndex( "lib" ) != -1 && values.findIndex( "dll" ) != -1 )
+ if ( templateval.tqfindIndex( "lib" ) != -1 && values.tqfindIndex( "dll" ) != -1 )
tmpLib = item->getSharedLibAddObject( myProjectItem->scope->projectDir() );
- else if ( templateval.findIndex( "lib" ) != -1 )
+ else if ( templateval.tqfindIndex( "lib" ) != -1 )
tmpLib = item->getLibAddObject( myProjectItem->scope->projectDir() );
else
tmpLib = item->getApplicationObject( myProjectItem->scope->projectDir() );
InsideCheckListItem * newItem = new InsideCheckListItem( intDeps_view, intDeps_view->lastItem(), item, this );
items[tmpLib] = newItem;
- if ( depsList.findIndex( tmpLib ) != -1 )
+ if ( depsList.tqfindIndex( tmpLib ) != -1 )
{
depsList.remove( tmpLib );
newItem->setOn( true );
@@ -1248,16 +1248,16 @@ void ProjectConfigurationDlg::updateDependenciesControl( )
void ProjectConfigurationDlg::updateBuildOrderControl()
{
//sort build order only if subdirs
- if ( myProjectItem->scope->variableValues( "TEMPLATE" ).findIndex( "subdirs" ) != -1 )
+ if ( myProjectItem->scope->variableValues( "TEMPLATE" ).tqfindIndex( "subdirs" ) != -1 )
{
- TQPtrList <QMakeScopeItem> itemList;
+ TQPtrList <TQMakeScopeItem> itemList;
- QMakeScopeItem *item = static_cast<QMakeScopeItem*>( myProjectItem->firstChild() );
+ TQMakeScopeItem *item = static_cast<TQMakeScopeItem*>( myProjectItem->firstChild() );
while ( item )
{
itemList.append( item );
- item = static_cast<QMakeScopeItem*>( item->nextSibling() );
+ item = static_cast<TQMakeScopeItem*>( item->nextSibling() );
}
incaddTab->setEnabled( false );
@@ -1379,7 +1379,7 @@ void ProjectConfigurationDlg::outsideIncAddClicked()
{
KURLRequesterDlg dialog( "", i18n( "Add include directory:" ), 0, 0 );
dialog.urlRequester() ->setMode( KFile::Directory | KFile::LocalOnly );
- dialog.urlRequester() ->setURL( TQString::null );
+ dialog.urlRequester() ->setURL( TQString() );
dialog.urlRequester() ->completionObject() ->setDir( myProjectItem->scope->projectDir() );
dialog.urlRequester() ->fileDialog() ->setURL( KURL( myProjectItem->scope->projectDir() ) );
if ( dialog.exec() != TQDialog::Accepted )
@@ -1463,7 +1463,7 @@ void ProjectConfigurationDlg::outsideLibAddClicked()
KURLRequesterDlg dialog( "", i18n( "Add Library: Either choose the .a/.so file or give -l<libname>" ), 0, 0 );
dialog.urlRequester() ->setMode( KFile::File | KFile::ExistingOnly | KFile::LocalOnly );
dialog.urlRequester() ->setFilter( "*.so|"+i18n("Shared Library (*.so)")+"\n*.a|"+i18n("Static Library (*.a)") );
- dialog.urlRequester() ->setURL( TQString::null );
+ dialog.urlRequester() ->setURL( TQString() );
dialog.urlRequester() ->completionObject() ->setDir( myProjectItem->scope->projectDir() );
dialog.urlRequester() ->fileDialog() ->setURL( KURL( myProjectItem->scope->projectDir() ) );
if ( dialog.exec() != TQDialog::Accepted )
@@ -1546,7 +1546,7 @@ void ProjectConfigurationDlg::outsideLibDirAddClicked()
{
KURLRequesterDlg dialog( "", i18n( "Add library directory:" ), 0, 0 );
dialog.urlRequester() ->setMode( KFile::Directory | KFile::LocalOnly );
- dialog.urlRequester() ->setURL( TQString::null );
+ dialog.urlRequester() ->setURL( TQString() );
dialog.urlRequester() ->completionObject() ->setDir( myProjectItem->scope->projectDir() );
dialog.urlRequester() ->fileDialog() ->setURL( KURL( myProjectItem->scope->projectDir() ) );
if ( dialog.exec() != TQDialog::Accepted )
@@ -1686,7 +1686,7 @@ void ProjectConfigurationDlg::extAdd_button_clicked( )
{
KURLRequesterDlg dialog( "", i18n( "Add target:" ), 0, 0 );
dialog.urlRequester() ->setMode( KFile::File | KFile::LocalOnly );
- dialog.urlRequester() ->setURL( TQString::null );
+ dialog.urlRequester() ->setURL( TQString() );
dialog.urlRequester() ->completionObject() ->setDir( myProjectItem->scope->projectDir() );
dialog.urlRequester() ->fileDialog() ->setURL( KURL( myProjectItem->scope->projectDir() ) );
if ( dialog.exec() != TQDialog::Accepted )
@@ -1882,7 +1882,7 @@ void ProjectConfigurationDlg::groupLibrariesChanged( int )
checkPlugin->setEnabled( true );
checkDesigner->setEnabled( checkPlugin->isChecked() );
}
- else if ( checkPlugin->isChecked() && prjWidget->m_part->isQt4Project() )
+ else if ( checkPlugin->isChecked() && prjWidget->m_part->isTQt4Project() )
{
checkDesigner->setEnabled( true );
}
@@ -1978,7 +1978,7 @@ void ProjectConfigurationDlg::groupTemplateChanged( int )
void ProjectConfigurationDlg::groupRequirementsChanged( int )
{
- if ( checkQt->isChecked() && prjWidget->m_part->isQt4Project() )
+ if ( checkQt->isChecked() && prjWidget->m_part->isTQt4Project() )
{
groupQt4Libs->setEnabled( true );
}
@@ -2036,17 +2036,17 @@ void ProjectConfigurationDlg::removeSharedLibDeps()
TQListViewItemIterator it(myProjectItem->listView());
for( ; it.current() ; ++it )
{
- QMakeScopeItem* prjItem = static_cast<QMakeScopeItem*>( it.current() );
+ TQMakeScopeItem* prjItem = static_cast<TQMakeScopeItem*>( it.current() );
if( prjItem == myProjectItem || !prjItem->isEnabled() )
continue;
TQMap<TQString, TQString> infos = myProjectItem->getLibInfos(prjItem->scope->projectDir());
- if( prjItem->scope->variableValues("LIBS").findIndex(infos["shared_lib"]) != -1 )
+ if( prjItem->scope->variableValues("LIBS").tqfindIndex(infos["shared_lib"]) != -1 )
prjItem->scope->removeFromPlusOp("LIBS", infos["shared_lib"]);
- if( prjItem->scope->variableValues("LIBS").findIndex(infos["shared_libdir"]) != -1 )
+ if( prjItem->scope->variableValues("LIBS").tqfindIndex(infos["shared_libdir"]) != -1 )
prjItem->scope->removeFromPlusOp("LIBS", infos["shared_libdir"]);
- if( prjItem->scope->variableValues("TARGETDEPS").findIndex(infos["shared_depend"]) != -1 )
+ if( prjItem->scope->variableValues("TARGETDEPS").tqfindIndex(infos["shared_depend"]) != -1 )
{
prjItem->scope->removeFromPlusOp("TARGETDEPS", infos["shared_depend"]);
@@ -2060,14 +2060,14 @@ void ProjectConfigurationDlg::addStaticLibDeps()
TQListViewItemIterator it(myProjectItem->listView());
for( ; it.current() ; ++it )
{
- QMakeScopeItem* prjItem = static_cast<QMakeScopeItem*>( it.current() );
+ TQMakeScopeItem* prjItem = static_cast<TQMakeScopeItem*>( it.current() );
if( prjItem == myProjectItem || !prjItem->isEnabled() )
continue;
TQMap<TQString, TQString> infos = myProjectItem->getLibInfos(prjItem->scope->projectDir());
- if( prjItem->scope->variableValues("TARGETDEPS").findIndex(infos["app_depend"]) != -1
- || prjItem->scope->variableValues("TARGETDEPS").findIndex(infos["shared_depend"]) != -1 )
+ if( prjItem->scope->variableValues("TARGETDEPS").tqfindIndex(infos["app_depend"]) != -1
+ || prjItem->scope->variableValues("TARGETDEPS").tqfindIndex(infos["shared_depend"]) != -1 )
{
prjItem->scope->addToPlusOp("LIBS", infos["static_lib"]);
prjItem->scope->addToPlusOp("TARGETDEPS", infos["static_depend"]);
@@ -2081,16 +2081,16 @@ void ProjectConfigurationDlg::removeStaticLibDeps()
TQListViewItemIterator it(myProjectItem->listView());
for( ; it.current() ; ++it )
{
- QMakeScopeItem* prjItem = static_cast<QMakeScopeItem*>( it.current() );
+ TQMakeScopeItem* prjItem = static_cast<TQMakeScopeItem*>( it.current() );
if( prjItem == myProjectItem || !prjItem->isEnabled() )
continue;
TQMap<TQString, TQString> infos = myProjectItem->getLibInfos(prjItem->scope->projectDir());
- if( prjItem->scope->variableValues("LIBS").findIndex(infos["static_lib"]) != -1 )
+ if( prjItem->scope->variableValues("LIBS").tqfindIndex(infos["static_lib"]) != -1 )
prjItem->scope->removeFromPlusOp("LIBS", infos["static_lib"]);
- if( prjItem->scope->variableValues("TARGETDEPS").findIndex(infos["static_depend"]) != -1 )
+ if( prjItem->scope->variableValues("TARGETDEPS").tqfindIndex(infos["static_depend"]) != -1 )
{
prjItem->scope->removeFromPlusOp("TARGETDEPS", infos["static_depend"]);
prjItem->scope->saveToFile();
@@ -2103,13 +2103,13 @@ void ProjectConfigurationDlg::addSharedLibDeps()
TQListViewItemIterator it(myProjectItem->listView());
for( ; it.current() ; ++it )
{
- QMakeScopeItem* prjItem = static_cast<QMakeScopeItem*>( it.current() );
+ TQMakeScopeItem* prjItem = static_cast<TQMakeScopeItem*>( it.current() );
if( prjItem == myProjectItem || !prjItem->isEnabled() )
continue;
TQMap<TQString, TQString> infos = myProjectItem->getLibInfos(prjItem->scope->projectDir());
- if( prjItem->scope->variableValues("TARGETDEPS").findIndex(infos["app_depend"]) != -1
- || prjItem->scope->variableValues("TARGETDEPS").findIndex(infos["static_depend"]) != -1 )
+ if( prjItem->scope->variableValues("TARGETDEPS").tqfindIndex(infos["app_depend"]) != -1
+ || prjItem->scope->variableValues("TARGETDEPS").tqfindIndex(infos["static_depend"]) != -1 )
{
prjItem->scope->addToPlusOp("LIBS", infos["shared_lib"]);
prjItem->scope->addToPlusOp("LIBS", infos["shared_libdir"]);
@@ -2124,13 +2124,13 @@ void ProjectConfigurationDlg::removeAppDeps()
TQListViewItemIterator it(myProjectItem->listView());
for( ; it.current() ; ++it )
{
- QMakeScopeItem* prjItem = static_cast<QMakeScopeItem*>( it.current() );
+ TQMakeScopeItem* prjItem = static_cast<TQMakeScopeItem*>( it.current() );
if( prjItem == myProjectItem || !prjItem->isEnabled() )
continue;
TQMap<TQString, TQString> infos = myProjectItem->getLibInfos(prjItem->scope->projectDir());
- if( prjItem->scope->variableValues("TARGETDEPS").findIndex(infos["app_depend"]) != -1 )
+ if( prjItem->scope->variableValues("TARGETDEPS").tqfindIndex(infos["app_depend"]) != -1 )
{
prjItem->scope->removeFromPlusOp("TARGETDEPS", infos["app_depend"]);
prjItem->scope->saveToFile();
@@ -2143,14 +2143,14 @@ void ProjectConfigurationDlg::addAppDeps()
TQListViewItemIterator it(myProjectItem->listView());
for( ; it.current() ; ++it )
{
- QMakeScopeItem* prjItem = static_cast<QMakeScopeItem*>( it.current() );
+ TQMakeScopeItem* prjItem = static_cast<TQMakeScopeItem*>( it.current() );
if( prjItem == myProjectItem || !prjItem->isEnabled() )
continue;
TQMap<TQString, TQString> infos = myProjectItem->getLibInfos(prjItem->scope->projectDir());
- if( prjItem->scope->variableValues("TARGETDEPS").findIndex(infos["shared_depend"]) != -1
- || prjItem->scope->variableValues("TARGETDEPS").findIndex(infos["static_depend"]) != -1 )
+ if( prjItem->scope->variableValues("TARGETDEPS").tqfindIndex(infos["shared_depend"]) != -1
+ || prjItem->scope->variableValues("TARGETDEPS").tqfindIndex(infos["static_depend"]) != -1 )
{
prjItem->scope->addToPlusOp("TARGETDEPS", infos["app_depend"]);
@@ -2171,4 +2171,4 @@ void ProjectConfigurationDlg::customVarChanged()
activateApply( 0 );
}
-// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on
+// kate: space-indent on; indent-width 4; tab-width 4; tqreplace-tabs on