summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/autosubprojectview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/autotools/autosubprojectview.cpp')
-rw-r--r--buildtools/autotools/autosubprojectview.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/buildtools/autotools/autosubprojectview.cpp b/buildtools/autotools/autosubprojectview.cpp
index f6d22a77..3bd53803 100644
--- a/buildtools/autotools/autosubprojectview.cpp
+++ b/buildtools/autotools/autosubprojectview.cpp
@@ -107,8 +107,8 @@ static void removeDir( const TQString& dirName )
}
-AutoSubprojectView::AutoSubprojectView(AutoProjectWidget* widget, AutoProjectPart* part, TQWidget *tqparent, const char *name)
-: AutoProjectViewBase(tqparent, name)
+AutoSubprojectView::AutoSubprojectView(AutoProjectWidget* widget, AutoProjectPart* part, TQWidget *parent, const char *name)
+: AutoProjectViewBase(parent, name)
{
m_widget = widget;
@@ -433,18 +433,18 @@ void AutoSubprojectView::slotRemoveSubproject()
if( !spitem )
return;
- SubprojectItem* tqparent = static_cast<SubprojectItem*>( spitem->tqparent() );
- if( !tqparent || !tqparent->listView() || spitem->childCount() != 0 ){
+ SubprojectItem* parent = static_cast<SubprojectItem*>( spitem->parent() );
+ if( !parent || !parent->listView() || spitem->childCount() != 0 ){
KMessageBox::error( 0, i18n("This item cannot be removed"), i18n("Automake Manager") );
return;
}
- TQStringList list = TQStringList::split( TQRegExp("[ \t]"), tqparent->variables["SUBDIRS"] );
+ TQStringList list = TQStringList::split( TQRegExp("[ \t]"), parent->variables["SUBDIRS"] );
TQStringList::Iterator it = list.find( spitem->subdir );
TQString subdirToRemove = spitem->subdir;
bool topsubdirs = true;
- if ((tqparent->variables["SUBDIRS"].find("$(TOPSUBDIRS)") == -1)
- && (tqparent->variables["SUBDIRS"].find("$(AUTODIRS)") == -1))
+ if ((parent->variables["SUBDIRS"].find("$(TOPSUBDIRS)") == -1)
+ && (parent->variables["SUBDIRS"].find("$(AUTODIRS)") == -1))
{
topsubdirs = false;
if( it == list.end() ){
@@ -462,10 +462,10 @@ void AutoSubprojectView::slotRemoveSubproject()
if (!topsubdirs)
{
list.remove( it );
- tqparent->variables[ "SUBDIRS" ] = list.join( " " );
+ parent->variables[ "SUBDIRS" ] = list.join( " " );
}
- tqparent->listView()->setSelected( tqparent, true );
+ parent->listView()->setSelected( parent, true );
kapp->tqprocessEvents( 500 );
@@ -511,9 +511,9 @@ void AutoSubprojectView::slotRemoveSubproject()
// Adjust SUBDIRS variable in containing Makefile.am
- if (tqparent->variables["SUBDIRS"].find("$(TOPSUBDIRS)") != -1)
+ if (parent->variables["SUBDIRS"].find("$(TOPSUBDIRS)") != -1)
{
- TQFile subdirsfile( tqparent->path + "/subdirs" );
+ TQFile subdirsfile( parent->path + "/subdirs" );
TQStringList topdirs;
if ( subdirsfile.open( IO_ReadOnly ) )
{
@@ -534,9 +534,9 @@ void AutoSubprojectView::slotRemoveSubproject()
TQMap<TQString,TQString> replaceMap;
replaceMap.insert( "SUBDIRS", subdirToRemove );
- AutoProjectTool::removeFromMakefileam( tqparent->path + "/Makefile.am", replaceMap );
+ AutoProjectTool::removeFromMakefileam( parent->path + "/Makefile.am", replaceMap );
- TQString relmakefile = ( tqparent->path + "/Makefile" ).mid( m_part->projectDirectory().length()+1 );
+ TQString relmakefile = ( parent->path + "/Makefile" ).mid( m_part->projectDirectory().length()+1 );
kdDebug(9020) << "Relative makefile path: " << relmakefile << endl;
// check for config.status
@@ -879,14 +879,14 @@ void AutoSubprojectView::parseSUBDIRS( SubprojectItem *item,
open = false;
if ( newitem->subdir == "pics" )
open = false;
- if ( newitem && static_cast<SubprojectItem*>( newitem->tqparent() )
+ if ( newitem && static_cast<SubprojectItem*>( newitem->parent() )
->subdir == "doc" )
open = false;
if ( newitem && static_cast<SubprojectItem*>
- ( newitem->tqparent() ) ->subdir == "po" )
+ ( newitem->parent() ) ->subdir == "po" )
open = false;
if ( newitem && static_cast<SubprojectItem*>
- ( newitem->tqparent() ) ->subdir == "pics" )
+ ( newitem->parent() ) ->subdir == "pics" )
open = false;
newitem->setOpen( open );