summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/designer/shared/ui2uib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/tools/designer/shared/ui2uib.cpp')
-rw-r--r--tqtinterface/qt4/tools/designer/shared/ui2uib.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tqtinterface/qt4/tools/designer/shared/ui2uib.cpp b/tqtinterface/qt4/tools/designer/shared/ui2uib.cpp
index bf6335d..082e2b0 100644
--- a/tqtinterface/qt4/tools/designer/shared/ui2uib.cpp
+++ b/tqtinterface/qt4/tools/designer/shared/ui2uib.cpp
@@ -171,7 +171,7 @@ public:
int insert() { return next++; }
void setName( int no, const TQString& name );
- int tqfind( const TQString& name, int deflt = -1 ) const;
+ int find( const TQString& name, int deflt = -1 ) const;
int count() const { return next; }
private:
@@ -188,10 +188,10 @@ void UibIndexMap::setName( int no, const TQString& name )
}
}
-int UibIndexMap::tqfind( const TQString& name, int deflt ) const
+int UibIndexMap::find( const TQString& name, int deflt ) const
{
- TQMap<TQString, int>::ConstIterator no = nameMap.tqfind( name );
- if ( no == nameMap.end() || conflicts.tqcontains(name) ) {
+ TQMap<TQString, int>::ConstIterator no = nameMap.find( name );
+ if ( no == nameMap.end() || conflicts.contains(name) ) {
return deflt;
} else {
return *no;
@@ -239,7 +239,7 @@ static void packString( UibStrTable& strings, TQDataStream& out,
static void packStringSplit( UibStrTable& strings, TQDataStream& out,
const TQString& str, TQChar sep )
{
- int pos = str.tqfind( sep );
+ int pos = str.find( sep );
if ( pos == -1 )
pos = str.length();
packString( strings, out, str.left(pos) );
@@ -523,7 +523,7 @@ static int outputObject( TQMap<int, TQStringList>& buddies,
if ( tag == "action" ) {
if ( elem.tagName() == "item" || elem.tagName() == "toolbar" ) {
TQString actionName = f.attribute( "name" );
- int no = objects.tqfind( actionName );
+ int no = objects.find( actionName );
if ( no != -1 ) {
out << (TQ_UINT8) Object_ActionRef;
packUInt16( out, no );
@@ -763,7 +763,7 @@ void convertUiToUib( TQDomDocument& doc, TQDataStream& out )
while ( !f.isNull() ) {
if ( f.tagName() == "tabstop" ) {
TQString widgetName = f.firstChild().toText().data();
- int no = objects.tqfind( widgetName );
+ int no = objects.find( widgetName );
if ( no != -1 )
packUInt16( out2, no );
}
@@ -798,7 +798,7 @@ void convertUiToUib( TQDomDocument& doc, TQDataStream& out )
while ( a != buddies.end() ) {
TQStringList::ConstIterator b = (*a).begin();
while ( b != (*a).end() ) {
- int no = objects.tqfind( *b );
+ int no = objects.find( *b );
if ( no != -1 ) {
packUInt16( out2, a.key() );
packUInt16( out2, no );
@@ -829,8 +829,8 @@ void convertUiToUib( TQDomDocument& doc, TQDataStream& out )
}
TQString language = f.attribute( "language", "C++" );
- int senderNo = objects.tqfind( argMap["sender"], widgetNo );
- int receiverNo = objects.tqfind( argMap["receiver"], widgetNo );
+ int senderNo = objects.find( argMap["sender"], widgetNo );
+ int receiverNo = objects.find( argMap["receiver"], widgetNo );
TQString signal = UibHack::normalize( argMap["signal"] );
TQString slot = UibHack::normalize( argMap["slot"] );