summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/autoprojectwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/autotools/autoprojectwidget.cpp')
-rw-r--r--buildtools/autotools/autoprojectwidget.cpp222
1 files changed, 111 insertions, 111 deletions
diff --git a/buildtools/autotools/autoprojectwidget.cpp b/buildtools/autotools/autoprojectwidget.cpp
index c3248504..321aa349 100644
--- a/buildtools/autotools/autoprojectwidget.cpp
+++ b/buildtools/autotools/autoprojectwidget.cpp
@@ -17,20 +17,20 @@
#include "autoprojectwidget.h"
-#include <qcheckbox.h>
-#include <qdom.h>
-#include <qfile.h>
-#include <qheader.h>
-#include <qpainter.h>
-#include <qptrstack.h>
-#include <qregexp.h>
-#include <qsplitter.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qtimer.h>
+#include <tqcheckbox.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqheader.h>
+#include <tqpainter.h>
+#include <tqptrstack.h>
+#include <tqregexp.h>
+#include <tqsplitter.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqtimer.h>
#include <kdebug.h>
#include <kfiledialog.h>
@@ -55,7 +55,7 @@
#include "urlutil.h"
#include "makefilehandler.h"
-static QString nicePrimary( const QString &primary )
+static TQString nicePrimary( const TQString &primary )
{
if ( primary == "PROGRAMS" )
return i18n( "Program" );
@@ -72,12 +72,12 @@ static QString nicePrimary( const QString &primary )
else if ( primary == "JAVA" )
return i18n( "Java" );
else
- return QString::null;
+ return TQString::null;
}
AutoProjectWidget::AutoProjectWidget( AutoProjectPart *part, bool kde )
- : QVBox( 0, "auto project widget" )
+ : TQVBox( 0, "auto project widget" )
{
m_part = part;
m_kdeMode = kde;
@@ -87,7 +87,7 @@ AutoProjectWidget::AutoProjectWidget( AutoProjectPart *part, bool kde )
m_choosenTarget = 0;
m_makefileHandler = new MakefileHandler();
- QSplitter *splitter = new QSplitter(Vertical, this);
+ TQSplitter *splitter = new TQSplitter(Vertical, this);
initOverview ( splitter );
initDetailview ( splitter );
@@ -101,20 +101,20 @@ AutoProjectWidget::~AutoProjectWidget()
delete m_makefileHandler;
}
-void AutoProjectWidget::initOverview ( QWidget* parent )
+void AutoProjectWidget::initOverview ( TQWidget* parent )
{
m_subprojectView = new AutoSubprojectView( this, m_part, parent, "project overview widget" );
}
-void AutoProjectWidget::initDetailview ( QWidget* parent )
+void AutoProjectWidget::initDetailview ( TQWidget* parent )
{
m_detailView = new AutoDetailsView( this, m_part, parent, "project details widget" );
}
void AutoProjectWidget::initActions()
{
- connect( m_subprojectView, SIGNAL( selectionChanged( QListViewItem* ) ),
- this, SLOT( slotOverviewSelectionChanged( QListViewItem* ) ) );
+ connect( m_subprojectView, TQT_SIGNAL( selectionChanged( TQListViewItem* ) ),
+ this, TQT_SLOT( slotOverviewSelectionChanged( TQListViewItem* ) ) );
}
AutoSubprojectView* AutoProjectWidget::getSubprojectView ()
@@ -127,7 +127,7 @@ AutoDetailsView* AutoProjectWidget::getDetailsView ()
return m_detailView;
}
-void AutoProjectWidget::openProject( const QString &dirName )
+void AutoProjectWidget::openProject( const TQString &dirName )
{
m_subprojectView->loadMakefileams ( dirName );
MakefileHandler mfh;
@@ -153,29 +153,29 @@ TargetItem* AutoProjectWidget::activeTarget ()
return m_activeTarget;
}
-QStringList AutoProjectWidget::allSubprojects()
+TQStringList AutoProjectWidget::allSubprojects()
{
int prefixlen = m_part->projectDirectory().length() + 1;
- QStringList res;
+ TQStringList res;
- QListViewItemIterator it( m_subprojectView->listView() );
+ TQListViewItemIterator it( m_subprojectView->listView() );
for ( ; it.current(); ++it )
{
// Skip root subproject
// if ( it.current() == m_subprojectView->firstChild() )
// continue;
- QString path = static_cast<SubprojectItem*>( it.current() ) ->path;
+ TQString path = static_cast<SubprojectItem*>( it.current() ) ->path;
res.append( path.mid( prefixlen ) );
}
return res;
}
-QPtrList <SubprojectItem> AutoProjectWidget::allSubprojectItems()
+TQPtrList <SubprojectItem> AutoProjectWidget::allSubprojectItems()
{
- QPtrList <SubprojectItem> res;
+ TQPtrList <SubprojectItem> res;
- QListViewItemIterator it ( m_subprojectView->listView() );
+ TQListViewItemIterator it ( m_subprojectView->listView() );
for ( ; it.current(); ++it )
{
@@ -190,16 +190,16 @@ QPtrList <SubprojectItem> AutoProjectWidget::allSubprojectItems()
return res;
}
-SubprojectItem* AutoProjectWidget::subprojectItemForPath(const QString & path, bool pathIsAbsolute)
+SubprojectItem* AutoProjectWidget::subprojectItemForPath(const TQString & path, bool pathIsAbsolute)
{
kdDebug(9020) << "Looking for path " << path << endl;
int prefixLen = m_part->projectDirectory().length() + 1;
- QListViewItemIterator it( m_subprojectView->listView() );
+ TQListViewItemIterator it( m_subprojectView->listView() );
for(; it.current(); ++it)
{
SubprojectItem* spitem = static_cast<SubprojectItem*>(it.current() );
- QString relpath = (spitem->path).mid(prefixLen);
+ TQString relpath = (spitem->path).mid(prefixLen);
kdDebug(9020) << " ... checking -" << spitem->path << "-" << endl;
kdDebug(9020) << " ... (tailored: -" << relpath << "- against -" << (pathIsAbsolute ? path.mid(prefixLen) : path) << "- )" << endl;
if ( relpath == (pathIsAbsolute ? path.mid(prefixLen) : path))
@@ -212,15 +212,15 @@ SubprojectItem* AutoProjectWidget::subprojectItemForPath(const QString & path, b
return NULL;
}
-QString AutoProjectWidget::pathForTarget(const TargetItem *titem) const
+TQString AutoProjectWidget::pathForTarget(const TargetItem *titem) const
{
if (!titem)
- return QString::null;
+ return TQString::null;
kdDebug(9020) << "Looking for target " << titem->name << endl;
int prefixLen = m_part->projectDirectory().length() + 1;
- QListViewItemIterator it( m_subprojectView->listView() );
+ TQListViewItemIterator it( m_subprojectView->listView() );
for(; it.current(); ++it)
{
SubprojectItem* spitem = static_cast<SubprojectItem*>(it.current() );
@@ -228,31 +228,31 @@ QString AutoProjectWidget::pathForTarget(const TargetItem *titem) const
if (spitem->targets.containsRef(titem))
{
kdDebug(9020) << "Found it!" << endl;
- QString relpath = (spitem->path).mid(prefixLen);
+ TQString relpath = (spitem->path).mid(prefixLen);
return relpath;
}
}
kdDebug(9020) << "Not found" << endl;
- return QString::null;
+ return TQString::null;
}
-QStringList AutoProjectWidget::allLibraries()
+TQStringList AutoProjectWidget::allLibraries()
{
int prefixlen = m_part->projectDirectory().length() + 1;
- QStringList res;
+ TQStringList res;
- QListViewItemIterator it( m_subprojectView->listView() );
+ TQListViewItemIterator it( m_subprojectView->listView() );
for ( ; it.current(); ++it )
{
SubprojectItem *spitem = static_cast<SubprojectItem*>( it.current() );
- QString path = spitem->path;
- QPtrListIterator<TargetItem> tit( spitem->targets );
+ TQString path = spitem->path;
+ TQPtrListIterator<TargetItem> tit( spitem->targets );
for ( ; tit.current(); ++tit )
{
- QString primary = ( *tit ) ->primary;
+ TQString primary = ( *tit ) ->primary;
if ( primary == "LIBRARIES" || primary == "LTLIBRARIES" )
{
- QString fullname = path + "/" + ( *tit ) ->name;
+ TQString fullname = path + "/" + ( *tit ) ->name;
res.append( fullname.mid( prefixlen ) );
}
}
@@ -262,12 +262,12 @@ QStringList AutoProjectWidget::allLibraries()
}
-QStringList AutoProjectWidget::allFiles()
+TQStringList AutoProjectWidget::allFiles()
{
- QPtrStack<QListViewItem> s;
- QMap<QString, bool> dict;
+ TQPtrStack<TQListViewItem> s;
+ TQMap<TQString, bool> dict;
- for ( QListViewItem * item = m_subprojectView->listView()->firstChild(); item;
+ for ( TQListViewItem * item = m_subprojectView->listView()->firstChild(); item;
item = item->nextSibling() ? item->nextSibling() : s.pop() )
{
if ( item->firstChild() )
@@ -275,18 +275,18 @@ QStringList AutoProjectWidget::allFiles()
SubprojectItem *spitem = static_cast<SubprojectItem*>( item );
// use URLUtil so paths in root project dir are worked out correctly
- QString relPath = URLUtil::relativePath(m_part->projectDirectory(), spitem->path, URLUtil::SLASH_SUFFIX);
- QPtrListIterator<TargetItem> tit( spitem->targets );
+ TQString relPath = URLUtil::relativePath(m_part->projectDirectory(), spitem->path, URLUtil::SLASH_SUFFIX);
+ TQPtrListIterator<TargetItem> tit( spitem->targets );
for ( ; tit.current(); ++tit )
{
- QPtrListIterator<FileItem> fit( tit.current() ->sources );
+ TQPtrListIterator<FileItem> fit( tit.current() ->sources );
for ( ; fit.current(); ++fit )
{
if((*fit)->is_subst)
continue;
- QFileInfo fileInfo( (*fit)->name );
+ TQFileInfo fileInfo( (*fit)->name );
if( fileInfo.extension() == "ui" )
{
dict.insert( relPath + fileInfo.baseName() + ".h", true );
@@ -300,8 +300,8 @@ QStringList AutoProjectWidget::allFiles()
// Files may be in multiple targets, so we have to remove
// duplicates
- QStringList res;
- QMap<QString, bool>::Iterator it = dict.begin();
+ TQStringList res;
+ TQMap<TQString, bool>::Iterator it = dict.begin();
while( it != dict.end() ){
res << it.key();
++it;
@@ -311,36 +311,36 @@ QStringList AutoProjectWidget::allFiles()
}
-QString AutoProjectWidget::subprojectDirectory()
+TQString AutoProjectWidget::subprojectDirectory()
{
if ( !selectedSubproject() )
- return QString::null;
+ return TQString::null;
return selectedSubproject()->path;
}
-void AutoProjectWidget::setActiveTarget( const QString &targetPath )
+void AutoProjectWidget::setActiveTarget( const TQString &targetPath )
{
int prefixlen = m_part->projectDirectory().length() + 1;
- QString olddir = m_part->activeDirectory();
+ TQString olddir = m_part->activeDirectory();
m_activeSubproject = 0;
m_activeTarget = 0;
- QListViewItemIterator it( m_subprojectView->listView() );
+ TQListViewItemIterator it( m_subprojectView->listView() );
for ( ; it.current(); ++it )
{
SubprojectItem *spitem = static_cast<SubprojectItem*>( it.current() );
- QString path = spitem->path;
- QPtrListIterator<TargetItem> tit( spitem->targets );
+ TQString path = spitem->path;
+ TQPtrListIterator<TargetItem> tit( spitem->targets );
for ( ; tit.current(); ++tit )
{
- QString primary = ( *tit ) ->primary;
+ TQString primary = ( *tit ) ->primary;
if ( primary != "PROGRAMS" && primary != "LIBRARIES"
&& primary != "LTLIBRARIES" && primary != "JAVA" )
continue;
- QString currentTargetPath = ( path + "/" + ( *tit ) ->name ).mid( prefixlen );
+ TQString currentTargetPath = ( path + "/" + ( *tit ) ->name ).mid( prefixlen );
bool hasTarget = ( targetPath == currentTargetPath );
( *tit )->setBold( hasTarget );
@@ -378,7 +378,7 @@ void AutoProjectWidget::setActiveTarget( const QString &targetPath )
}
-QString AutoProjectWidget::activeDirectory()
+TQString AutoProjectWidget::activeDirectory()
{
if ( m_activeSubproject )
return m_activeSubproject->path.mid( m_part->projectDirectory().length() + 1 );
@@ -387,21 +387,21 @@ QString AutoProjectWidget::activeDirectory()
/* if ( selectedSubproject() )
return selectedSubproject()->path;
else*/
- return QString::null;
+ return TQString::null;
}
}
-void AutoProjectWidget::addFiles( const QStringList &list )
+void AutoProjectWidget::addFiles( const TQStringList &list )
{
- QDomDocument &dom = *m_part->projectDom();
- QStringList fileList = list;
+ TQDomDocument &dom = *m_part->projectDom();
+ TQStringList fileList = list;
if ( DomUtil::readBoolEntry( dom, "/kdevautoproject/general/useactivetarget" ) )
{
- QStringList::iterator it;
+ TQStringList::iterator it;
- QString fileName;
+ TQString fileName;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -422,7 +422,7 @@ void AutoProjectWidget::addFiles( const QStringList &list )
{
TargetItem *titem = dynamic_cast <TargetItem*> ( m_detailView->listView()->selectedItem() );
SubprojectItem * subitem = dynamic_cast <SubprojectItem*> ( m_subprojectView->listView()->selectedItem() );
- QString relativeDir = URLUtil::directory(*it);
+ TQString relativeDir = URLUtil::directory(*it);
SubprojectItem* spitem = subprojectItemForPath(relativeDir);
if( titem && subitem && subitem == spitem )
@@ -437,11 +437,11 @@ void AutoProjectWidget::addFiles( const QStringList &list )
addToTarget(fileName, m_activeSubproject, m_activeTarget);
}
-// QString canontargetname = AutoProjectTool::canonicalize( m_activeTarget->name );
-// QString varname = canontargetname + "_SOURCES";
+// TQString canontargetname = AutoProjectTool::canonicalize( m_activeTarget->name );
+// TQString varname = canontargetname + "_SOURCES";
// m_activeSubproject->variables[ varname ] += ( " " + fileName );
//
-// QMap<QString, QString> replaceMap;
+// TQMap<TQString, TQString> replaceMap;
// replaceMap.insert( varname, m_activeSubproject->variables[ varname ] );
//
// AutoProjectTool::addToMakefileam( m_activeSubproject->path + "/Makefile.am", replaceMap );
@@ -451,18 +451,18 @@ void AutoProjectWidget::addFiles( const QStringList &list )
}
else
{
- QStringList doManually, doneAutomatically;
+ TQStringList doManually, doneAutomatically;
// First check wether the detail view has a selected target and the subproject
// view selected subproject matches the path of the new file. Then
// we can assume the user used the right-click option on the target
- for( QStringList::iterator it = fileList.begin(); it != fileList.end(); ++it)
+ for( TQStringList::iterator it = fileList.begin(); it != fileList.end(); ++it)
{
bool autoAdded = false;
if( m_detailView->listView()->selectedItem() && m_subprojectView->listView()->selectedItem() )
{
TargetItem *titem = dynamic_cast <TargetItem*> ( m_detailView->listView()->selectedItem() );
SubprojectItem * subitem = dynamic_cast <SubprojectItem*> ( m_subprojectView->listView()->selectedItem() );
- QString relativeDir = URLUtil::directory(*it);
+ TQString relativeDir = URLUtil::directory(*it);
SubprojectItem* spitem = subprojectItemForPath(relativeDir);
if( titem && subitem && subitem == spitem )
{
@@ -477,16 +477,16 @@ void AutoProjectWidget::addFiles( const QStringList &list )
// See if we can figure out the target for each file without asking the user
// I think it's a valid assumption that if a directory contains only one target
// the file can be added to that target (Julian Rockey linux at jrockey.com)
- QStringList temp = doManually;
+ TQStringList temp = doManually;
doManually.clear();
- for(QStringList::iterator it = temp.begin();it!=temp.end();++it)
+ for(TQStringList::iterator it = temp.begin();it!=temp.end();++it)
{
bool autoAdded = false;
- QString relativeDir = URLUtil::directory(*it);
+ TQString relativeDir = URLUtil::directory(*it);
SubprojectItem* spitem = subprojectItemForPath(relativeDir);
if (spitem)
{
- QPtrList<TargetItem> titemList = spitem->targets;
+ TQPtrList<TargetItem> titemList = spitem->targets;
if (titemList.count()==1) {
addToTarget( URLUtil::filename(*it), spitem, titemList.first() );
doneAutomatically.append(*it);
@@ -511,9 +511,9 @@ void AutoProjectWidget::addFiles( const QStringList &list )
}
}
-void AutoProjectWidget::addToTarget(const QString & fileName, SubprojectItem* spitem, TargetItem* titem)
+void AutoProjectWidget::addToTarget(const TQString & fileName, SubprojectItem* spitem, TargetItem* titem)
{
- QString varname;
+ TQString varname;
/// \FIXME a quick hack to prevent adding header files to _SOURCES and display them in noinst_HEADERS
if (AutoProjectPrivate::isHeader(fileName) &&
( titem->primary == "PROGRAMS" || titem->primary == "LIBRARIES" || titem->primary == "LTLIBRARIES" ) )
@@ -531,12 +531,12 @@ void AutoProjectWidget::addToTarget(const QString & fileName, SubprojectItem* sp
titem->sources.append( fitem );
titem->insertItem( fitem );
- QString canontargetname = AutoProjectTool::canonicalize( titem->name );
+ TQString canontargetname = AutoProjectTool::canonicalize( titem->name );
varname = canontargetname + "_SOURCES";
}
spitem->variables[ varname ] += ( " " + fileName );
- QMap<QString, QString> replaceMap;
+ TQMap<TQString, TQString> replaceMap;
replaceMap.insert( varname, spitem->variables[ varname ] );
AutoProjectTool::addToMakefileam( spitem->path + "/Makefile.am", replaceMap );
@@ -544,12 +544,12 @@ void AutoProjectWidget::addToTarget(const QString & fileName, SubprojectItem* sp
m_detailView->slotSelectionChanged( spitem );
}
-void AutoProjectWidget::removeFiles( const QStringList &list )
+void AutoProjectWidget::removeFiles( const TQStringList &list )
{
Q_UNUSED( list )
}
-void AutoProjectWidget::slotOverviewSelectionChanged( QListViewItem *item )
+void AutoProjectWidget::slotOverviewSelectionChanged( TQListViewItem *item )
{
if ( !item )
return;
@@ -560,10 +560,10 @@ void AutoProjectWidget::slotOverviewSelectionChanged( QListViewItem *item )
// Remove all TargetItems and all of their children from the view
kdDebug ( 9020 ) << "m_shownSubproject (before takeItem()): " << m_shownSubproject->subdir << endl;
- QListViewItem* i = m_detailView->listView()->firstChild();
+ TQListViewItem* i = m_detailView->listView()->firstChild();
while( i )
{
- QListViewItem* o = i;
+ TQListViewItem* o = i;
i = i->nextSibling();
m_detailView->listView()->takeItem(o);
}
@@ -576,15 +576,15 @@ void AutoProjectWidget::slotOverviewSelectionChanged( QListViewItem *item )
kdDebug ( 9020 ) << "m_shownSubproject (after takeItem()): " << selectedSubproject()->subdir << endl;
// Insert all TargetItems and all of their children into the view
- QPtrListIterator<TargetItem> it2( selectedSubproject()->targets );
+ TQPtrListIterator<TargetItem> it2( selectedSubproject()->targets );
for ( ; it2.current(); ++it2 )
{
kdDebug ( 9020 ) << "insertItem in detail " << ( *it2 )->name << endl;
m_detailView->listView()->insertItem( *it2 );
- QPtrListIterator<FileItem> it3( ( *it2 ) ->sources );
+ TQPtrListIterator<FileItem> it3( ( *it2 ) ->sources );
for ( ; it3.current(); ++it3 )
( *it2 )->insertItem( *it3 );
- QString primary = ( *it2 ) ->primary;
+ TQString primary = ( *it2 ) ->primary;
if ( primary == "PROGRAMS" || primary == "LIBRARIES" ||
primary == "LTLIBRARIES" || primary == "JAVA" )
( *it2 ) ->setOpen( true );
@@ -620,15 +620,15 @@ SubprojectItem* AutoProjectWidget::selectedSubproject()
return static_cast <SubprojectItem*> ( pvitem );
}
-TargetItem *AutoProjectWidget::createTargetItem( const QString &name,
- const QString &prefix, const QString &primary,
+TargetItem *AutoProjectWidget::createTargetItem( const TQString &name,
+ const TQString &prefix, const TQString &primary,
bool take )
{
bool docgroup = ( primary == "KDEDOCS" );
bool icongroup = ( primary == "KDEICON" );
bool group = !(docgroup || icongroup);
- QString text;
+ TQString text;
if ( docgroup )
text = i18n( "Documentation data" );
else if ( icongroup )
@@ -636,7 +636,7 @@ TargetItem *AutoProjectWidget::createTargetItem( const QString &name,
else
text = i18n( "%1 (%2 in %3)" ).arg( name ).arg( nicePrimary( primary ) ).arg( prefix );
- // Workaround because of QListView not being able to create
+ // Workaround because of TQListView not being able to create
// items without actually inserting them
TargetItem *titem = new TargetItem( m_detailView->listView(), group, text );
titem->name = name;
@@ -649,7 +649,7 @@ TargetItem *AutoProjectWidget::createTargetItem( const QString &name,
}
-FileItem *AutoProjectWidget::createFileItem( const QString &name, SubprojectItem *subproject )
+FileItem *AutoProjectWidget::createFileItem( const TQString &name, SubprojectItem *subproject )
{
bool is_subst;
if(name.find("$(") == 0 || name.find("${") == 0)
@@ -666,45 +666,45 @@ FileItem *AutoProjectWidget::createFileItem( const QString &name, SubprojectItem
}
-void AutoProjectWidget::emitAddedFiles( const QStringList &fileList )
+void AutoProjectWidget::emitAddedFiles( const TQStringList &fileList )
{
emit m_part->addedFilesToProject( fileList );
}
-void AutoProjectWidget::emitAddedFile( const QString &name )
+void AutoProjectWidget::emitAddedFile( const TQString &name )
{
- QStringList fileList;
+ TQStringList fileList;
fileList.append ( name );
emit m_part->addedFilesToProject( fileList );
}
-void AutoProjectWidget::emitRemovedFiles( const QStringList &fileList )
+void AutoProjectWidget::emitRemovedFiles( const TQStringList &fileList )
{
emit m_part->removedFilesFromProject( fileList );
}
-void AutoProjectWidget::emitRemovedFile( const QString &name )
+void AutoProjectWidget::emitRemovedFile( const TQString &name )
{
- QStringList fileList;
+ TQStringList fileList;
fileList.append ( name );
emit m_part->removedFilesFromProject( fileList );
}
-void AutoProjectWidget::restoreSession ( const QDomElement* el )
+void AutoProjectWidget::restoreSession ( const TQDomElement* el )
{
Q_UNUSED( el );
}
-void AutoProjectWidget::saveSession ( QDomElement* el )
+void AutoProjectWidget::saveSession ( TQDomElement* el )
{
if ( m_activeTarget && m_activeSubproject )
{
- QDomDocument domDoc = el->ownerDocument();
+ TQDomDocument domDoc = el->ownerDocument();
- QString activeTargetPath = m_activeSubproject->path.mid ( m_part->project()->projectDirectory().length() + 1 );
+ TQString activeTargetPath = m_activeSubproject->path.mid ( m_part->project()->projectDirectory().length() + 1 );
activeTargetPath = activeTargetPath + "/" + m_activeTarget->name;
- QDomElement generalEl = domDoc.createElement("general");
+ TQDomElement generalEl = domDoc.createElement("general");
kdDebug ( 9020 ) << k_funcinfo << "Saving session data of AutoProjectWidget: " << activeTargetPath << endl;
@@ -715,12 +715,12 @@ void AutoProjectWidget::saveSession ( QDomElement* el )
void AutoProjectWidget::setActiveSubproject( SubprojectItem * spitem )
{
- QString olddir = m_part->activeDirectory();
+ TQString olddir = m_part->activeDirectory();
m_activeSubproject = spitem;
emit m_part->activeDirectoryChanged( olddir, m_part->activeDirectory() );
}
-void AutoProjectWidget::focusInEvent( QFocusEvent */*e*/ )
+void AutoProjectWidget::focusInEvent( TQFocusEvent */*e*/ )
{
switch (m_lastFocusedView)
{