summaryrefslogtreecommitdiffstats
path: root/experimental/tqtinterface/qt4/tools/designer/designer/project.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/tqtinterface/qt4/tools/designer/designer/project.cpp')
-rw-r--r--experimental/tqtinterface/qt4/tools/designer/designer/project.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/experimental/tqtinterface/qt4/tools/designer/designer/project.cpp b/experimental/tqtinterface/qt4/tools/designer/designer/project.cpp
index fa14e25f4..5e0ec5371 100644
--- a/experimental/tqtinterface/qt4/tools/designer/designer/project.cpp
+++ b/experimental/tqtinterface/qt4/tools/designer/designer/project.cpp
@@ -113,12 +113,12 @@ bool DatabaseConnection::open( bool suppressDialog )
#ifndef TQT_NO_SQL
// register our name, if nec
if ( nm == "(default)" ) {
- if ( !TQSqlDatabase::tqcontains() ) // default doesn't exists?
+ if ( !TQSqlDatabase::contains() ) // default doesn't exists?
conn = TQSqlDatabase::addDatabase( drv );
else
conn = TQSqlDatabase::database();
} else {
- if ( !TQSqlDatabase::tqcontains( nm ) )
+ if ( !TQSqlDatabase::contains( nm ) )
conn = TQSqlDatabase::addDatabase( drv, nm );
else
conn = TQSqlDatabase::database( nm );
@@ -290,8 +290,8 @@ void Project::setFileName( const TQString &fn, bool doClear )
}
- if ( proName.tqcontains( '.' ) )
- proName = proName.left( proName.tqfind( '.' ) );
+ if ( proName.contains( '.' ) )
+ proName = proName.left( proName.find( '.' ) );
if ( !doClear )
return;
@@ -450,7 +450,7 @@ void Project::parse()
TQStringList::ConstIterator it;
- int i = contents.tqfind( "LANGUAGE" );
+ int i = contents.find( "LANGUAGE" );
if ( i != -1 ) {
lang = "";
is_cpp = FALSE;
@@ -459,7 +459,7 @@ void Project::parse()
is_cpp = lang == "C++";
}
- i = contents.tqfind( "DBFILE" );
+ i = contents.find( "DBFILE" );
if ( i != -1 ) {
dbFile = "";
TQString part = contents.mid( i + TQString( "DBFILE" ).length() );
@@ -475,7 +475,7 @@ void Project::parse()
}
- i = contents.tqfind( "TEMPLATE" );
+ i = contents.find( "TEMPLATE" );
if ( i != -1 ) {
templ = "";
TQString part = contents.mid( i + TQString( "TEMPLATE" ).length() );
@@ -503,12 +503,12 @@ void Project::parse()
updateCustomSettings();
for ( it = csList.begin(); it != csList.end(); ++it ) {
- i = contents.tqfind( *it );
+ i = contents.find( *it );
if ( i != -1 ) {
TQString val = "";
TQString part = contents.mid( i + TQString( *it ).length() );
val = parse_part( part );
- customSettings.tqreplace( *it, val );
+ customSettings.replace( *it, val );
}
}
@@ -537,7 +537,7 @@ void Project::clear()
bool Project::removeSourceFile( SourceFile *sf )
{
- if ( !sourcefiles.tqcontainsRef( sf ) )
+ if ( !sourcefiles.containsRef( sf ) )
return FALSE;
if ( !sf->close() )
return FALSE;
@@ -601,10 +601,10 @@ TQString Project::makeRelative( const TQString &f )
static void remove_contents( TQString &contents, const TQString &s )
{
- int i = contents.tqfind( s );
+ int i = contents.find( s );
if ( i != -1 ) {
int start = i;
- int end = contents.tqfind( '\n', i );
+ int end = contents.find( '\n', i );
if ( end == -1 )
end = contents.length() - 1;
contents.remove( start, end - start + 1 );
@@ -613,9 +613,9 @@ static void remove_contents( TQString &contents, const TQString &s )
static void remove_multiline_contents( TQString &contents, const TQString &s, int *strt = 0 )
{
- int i = contents.tqfind( s );
- int startBrace = contents.tqfindRev("{", i);
- int endBrace = contents.tqfindRev("}", i);
+ int i = contents.find( s );
+ int startBrace = contents.findRev("{", i);
+ int endBrace = contents.findRev("}", i);
// We found a startBrace before i, but no endBrace after the startBrace before i
if (startBrace != -1 && endBrace < startBrace)
return;
@@ -745,7 +745,7 @@ void Project::save( bool onlyProjectFile )
TQString key = iface->projectKeyForExtension( TQFileInfo( f->fileName() ).extension() );
TQStringList lst = sourceToKey[ key ];
lst << makeRelative( f->fileName() );
- sourceToKey.tqreplace( key, lst );
+ sourceToKey.replace( key, lst );
}
for ( TQMap<TQString, TQStringList>::Iterator skit = sourceToKey.begin();
@@ -791,7 +791,7 @@ void Project::save( bool onlyProjectFile )
// custom settings
for ( TQStringList::Iterator it = csList.begin(); it != csList.end(); ++it ) {
- TQString val = *customSettings.tqfind( *it );
+ TQString val = *customSettings.find( *it );
if ( !val.isEmpty() )
contents += *it + "\t= " + val + "\n";
}
@@ -1145,7 +1145,7 @@ void Project::setCustomSetting( const TQString &key, const TQString &value )
TQString Project::customSetting( const TQString &key ) const
{
- return *customSettings.tqfind( key );
+ return *customSettings.find( key );
}
void Project::updateCustomSettings()
@@ -1184,7 +1184,7 @@ void Project::addSourceFile( SourceFile *sf )
}
-SourceFile* Project::tqfindSourceFile( const TQString& filename, SourceFile *ignore ) const
+SourceFile* Project::findSourceFile( const TQString& filename, SourceFile *ignore ) const
{
TQPtrListIterator<SourceFile> it(sourcefiles);
while ( it.current() ) {
@@ -1195,7 +1195,7 @@ SourceFile* Project::tqfindSourceFile( const TQString& filename, SourceFile *ign
return 0;
}
-FormFile* Project::tqfindFormFile( const TQString& filename, FormFile *ignore ) const
+FormFile* Project::findFormFile( const TQString& filename, FormFile *ignore ) const
{
TQPtrListIterator<FormFile> it(formfiles);
while ( it.current() ) {
@@ -1210,23 +1210,23 @@ void Project::setIncludePath( const TQString &platform, const TQString &path )
{
if ( inclPath[platform] == path )
return;
- inclPath.tqreplace( platform, path );
+ inclPath.replace( platform, path );
modified = TRUE;
}
void Project::setLibs( const TQString &platform, const TQString &path )
{
- lbs.tqreplace( platform, path );
+ lbs.replace( platform, path );
}
void Project::setDefines( const TQString &platform, const TQString &path )
{
- defs.tqreplace( platform, path );
+ defs.replace( platform, path );
}
void Project::setConfig( const TQString &platform, const TQString &config )
{
- cfg.tqreplace( platform, config );
+ cfg.replace( platform, config );
}
TQString Project::config( const TQString &platform ) const
@@ -1273,7 +1273,7 @@ void Project::readPlatformSettings( const TQString &contents,
TQString key = platforms[ i ];
if ( key.isEmpty() )
key = "(all)";
- res.tqreplace( key, s );
+ res.replace( key, s );
}
}
@@ -1305,7 +1305,7 @@ void Project::writePlatformSettings( TQString &contents, const TQString &setting
TQString key = platforms[ i ];
if ( key.isEmpty() )
key = "(all)";
- TQMap<TQString, TQString>::ConstIterator it = input.tqfind( key );
+ TQMap<TQString, TQString>::ConstIterator it = input.find( key );
if ( it == input.end() || (*it).isEmpty() )
continue;
contents += p + setting + "\t+= " + *it + "\n\n";
@@ -1321,7 +1321,7 @@ void Project::addFormFile( FormFile *ff )
bool Project::removeFormFile( FormFile *ff )
{
- if ( !formfiles.tqcontainsRef( ff ) )
+ if ( !formfiles.containsRef( ff ) )
return FALSE;
if ( !ff->close() )
return FALSE;
@@ -1392,7 +1392,7 @@ TQObjectList Project::objects() const
FormFile *Project::fakeFormFileFor( TQObject *o ) const
{
- return fakeFormFiles.tqfind( (void*)o );
+ return fakeFormFiles.find( (void*)o );
}
TQObject *Project::objectForFakeForm( FormWindow *fw ) const
@@ -1451,14 +1451,14 @@ void Project::addAndEditFunction( const TQString &function, const TQString &func
return;
iface->functions( f->text(), &funcs );
TQString func = function;
- int i = func.tqfind( '(' );
+ int i = func.find( '(' );
if ( i != -1 )
func = func.left( i );
bool found = FALSE;
for ( TQValueList<LanguageInterface::Function>::Iterator it = funcs.begin();
it != funcs.end(); ++it ) {
- if ( (*it).name.left( (*it).name.tqfind( '(' ) ) == func ) {
+ if ( (*it).name.left( (*it).name.find( '(' ) ) == func ) {
found = TRUE;
break;
}
@@ -1503,7 +1503,7 @@ TQString Project::qualifiedName( TQObject *o )
TQObject *p = o->tqparent();
while ( p ) {
name.prepend( TQString( p->name() ) + "." );
- if ( objs.tqfindRef( p ) != -1 )
+ if ( objs.findRef( p ) != -1 )
break;
p = p->tqparent();
}
@@ -1587,7 +1587,7 @@ TQString Project::locationOfObject( TQObject *o )
return TQString();
}
- TQString s = makeRelative( *qwf_forms->tqfind( (TQWidget*)o ) );
+ TQString s = makeRelative( *qwf_forms->find( (TQWidget*)o ) );
s += " [Source]";
return s;
}